Error using GetLocalTime on Seven (VS2008)

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

#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:

int start, end;

start=GetTickCount();

...

end=GetTickCount();

printf(end-start);

i get the same error