fix current_nanos on windows

db4
Doug Coleman 2009-11-18 11:04:46 -06:00
parent f9451f4996
commit 60d8ef22b8
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -44,6 +44,7 @@ inline static void init_signals() {}
inline static void early_init() {}
s64 current_micros();
u64 current_nanos();
long getpagesize();
}