|
|
@ -2299,7 +2299,7 @@ void CSleep(int milliseconds)
|
|
|
|
|
|
|
|
|
|
|
|
// Utility function to get the current timestamp in milliseconds
|
|
|
|
// Utility function to get the current timestamp in milliseconds
|
|
|
|
// Useful for profiling
|
|
|
|
// Useful for profiling
|
|
|
|
int64 GetTS()
|
|
|
|
int64 GetTS(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
static double freq;
|
|
|
|
static double freq;
|
|
|
|
__int64 value;
|
|
|
|
__int64 value;
|
|
|
@ -2309,4 +2309,4 @@ int64 GetTS()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
QueryPerformanceCounter((LARGE_INTEGER*)&value);
|
|
|
|
QueryPerformanceCounter((LARGE_INTEGER*)&value);
|
|
|
|
return (__int64)(value * freq);
|
|
|
|
return (__int64)(value * freq);
|
|
|
|
}
|
|
|
|
}
|
|
|
|