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