about summary refs log tree commit diff
path: root/src/rt/sync/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/sync/timer.cpp')
-rw-r--r--src/rt/sync/timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/sync/timer.cpp b/src/rt/sync/timer.cpp
index e45dd633314..0487b39796f 100644
--- a/src/rt/sync/timer.cpp
+++ b/src/rt/sync/timer.cpp
@@ -6,12 +6,12 @@
 #endif
 
 timer::timer() {
-    reset(0);
 #if __WIN32__
     uint64_t ticks_per_second;
     QueryPerformanceFrequency((LARGE_INTEGER *)&ticks_per_second);
     _ticks_per_us = ticks_per_second / 1000000;
 #endif
+    reset(0);
 }
 
 void