0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 00:31:02 +08:00

Proper LONGLONG value

This commit is contained in:
Victor Zarubkin 2016-08-01 22:16:31 +03:00
parent 146b0ccdfc
commit 7bf8d871c1

View File

@ -40,7 +40,7 @@ inline timestamp_t getCurrentTime()
LARGE_INTEGER elapsedMicroseconds;
if (!QueryPerformanceCounter(&elapsedMicroseconds))
return 0;
elapsedMicroseconds.QuadPart *= 1000000000;
elapsedMicroseconds.QuadPart *= 1000000000LL;
elapsedMicroseconds.QuadPart /= frequency.QuadPart;
return (timestamp_t)elapsedMicroseconds.QuadPart;
#else