diff options
Diffstat (limited to 'src/platform/windows/win_clock.c')
| -rw-r--r-- | src/platform/windows/win_clock.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/platform/windows/win_clock.c b/src/platform/windows/win_clock.c index 3309be24..bdb2f550 100644 --- a/src/platform/windows/win_clock.c +++ b/src/platform/windows/win_clock.c @@ -14,17 +14,8 @@ nni_time nni_plat_clock(void) { - LARGE_INTEGER freq; - LARGE_INTEGER count; - double rate; - - QueryPerformanceFrequency(&freq); - QueryPerformanceCounter(&count); - - // convert to ticks per us - rate = (double) freq.QuadPart / 1000000.0; - - return ((nni_time) (count.QuadPart / rate)); + // We are limited by the system clock, but that is ok. + return (GetTickCount64()*1000); } |
