Commit 978f9528 authored by deuce's avatar deuce
Browse files

Use the QuadPart member of the LARGE_INTEGER union.

parent 37c82f6b
......@@ -480,8 +480,12 @@ long double DLLCALL xp_timer(void)
LARGE_INTEGER freq;
LARGE_INTEGER tick;
if(QueryPerformanceFrequency(&freq) && QueryPerformanceCounter(&tick)) {
#if 0
ret=((long double)tick.HighPart*4294967296)+((long double)tick.LowPart);
ret /= ((long double)freq.HighPart*4294967296)+((long double)freq.LowPart);
#else
ret=((long double)tick.QuadPart)/freq.QuadPart;
#endif
}
else {
ret=GetTickCount();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment