Skip to content
Snippets Groups Projects
Commit 7d1fc057 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

More Win32 optimizations.

parent f8da2a2f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2723 failed
......@@ -850,6 +850,7 @@ uint64_t xp_timer64(void)
LARGE_INTEGER tick;
if (!initialized) {
LARGE_INTEGER freq;
if (!QueryPerformanceFrequency(&freq))
can_use_QPF = FALSE;
else
......@@ -870,7 +871,7 @@ uint64_t xp_timer64(void)
if (intable)
ret = tick.QuadPart / msfreq;
else
ret = ((double)tick.QuadPart) / msdfreq;
ret = (uint32_t)(((double)tick.QuadPart) / msdfreq);
}
else {
ret=GetTickCount();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment