fix current_nanos on windows
parent
9c58d0ce25
commit
4b9244ee85
|
|
@ -48,7 +48,7 @@ u64 current_nanos()
|
||||||
if(ret == 0)
|
if(ret == 0)
|
||||||
fatal_error("QueryPerformanceFrequency", 0);
|
fatal_error("QueryPerformanceFrequency", 0);
|
||||||
|
|
||||||
return (ulonglong)count*(1000000000/frequency);
|
return count.QuadPart*(1000000000/frequency.QuadPart);
|
||||||
}
|
}
|
||||||
|
|
||||||
LONG factor_vm::exception_handler(PEXCEPTION_POINTERS pe)
|
LONG factor_vm::exception_handler(PEXCEPTION_POINTERS pe)
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ inline static void init_signals() {}
|
||||||
inline static void early_init() {}
|
inline static void early_init() {}
|
||||||
|
|
||||||
s64 current_micros();
|
s64 current_micros();
|
||||||
|
u64 current_nanos();
|
||||||
long getpagesize();
|
long getpagesize();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue