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

Moar!

parent e7761bb1
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2720 failed
......@@ -842,11 +842,16 @@ uint64_t xp_timer64(void)
else
ret = -1;
#elif defined(_WIN32)
static BOOL intable = FALSE;
static BOOL intable_tested = FALSE;
LARGE_INTEGER freq;
LARGE_INTEGER tick;
if(QueryPerformanceFrequency(&freq) && QueryPerformanceCounter(&tick)) {
static BOOL intable = (freq.QuadPart % 1000) == 0;
if (!intable_tested) {
intable = (freq.QuadPart % 1000) == 0;
intable_tested = TRUE;
}
if (intable)
ret = tick.QuadPart / (freq.QuadPart / 1000);
else
......
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