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:
parent
146b0ccdfc
commit
7bf8d871c1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user