Commit c3c6d783 authored by Deucе's avatar Deucе 👌🏾
Browse files

Moar!

parent e7761bb1
Pipeline #2720 failed with stage
in 17 minutes and 53 seconds
......@@ -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
......
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