IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Error using GetLocalTime on Seven (VS2008)
eafkuor
post Nov 6 2009, 02:09 PM
Post #1



*

Group: Members
Posts: 6
Joined: 18-July 09
Member No.: 164,702



Hi, I wanted to check the the runtime (in milliseconds) of two pieces of code. I tried something like this:

CODE
#include <windows.h>

int main( int argc, char** argv) {


LPSYSTEMTIME start, end;

GetLocalTime(start);

...cuda __global__ function call here, and other host code..

GetLocalTime(end);

printf("CUDA time: %f\n", end->wMilliseconds-start->wMilliseconds);


}


When I compile, I get this error:
Error 37 error: identifier "IUnknown" is undefined C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objbase.h 240

I'm using VS2008 on Seven.
What's up with this error?

edit: even if I try this:

CODE
int start, end;

start=GetTickCount();
...
end=GetTickCount();

printf(end-start);


i get the same error

This post has been edited by eafkuor: Nov 6 2009, 02:19 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



Copyright 2008 NVIDIA Corporation.  Terms of Use | Legal Info | Privacy Policy Time is now: 24th November 2009 - 01:14 AM
Unites States Argentina Brazil Chile China Colombia France Germany India Italy Japan Korea Mexico Poland Russia Spain Taiwan United Kingdom Venezuela