Make QPC thread local again.
This commit is contained in:
1 parent
fc66ce9dd6
commit
05e303e9a0
1 file changed
+1
-2
@@ -24,8 +24,7 @@ _tick_now :: proc() -> Tick {
|
|||||||
return q * num + r * num / den
|
return q * num + r * num / den
|
||||||
}
|
}
|
||||||
|
|
||||||
// @thread_local qpc_frequency: win32.LARGE_INTEGER
|
@thread_local qpc_frequency: win32.LARGE_INTEGER
|
||||||
qpc_frequency: win32.LARGE_INTEGER
|
|
||||||
|
|
||||||
if qpc_frequency == 0 {
|
if qpc_frequency == 0 {
|
||||||
win32.QueryPerformanceFrequency(&qpc_frequency)
|
win32.QueryPerformanceFrequency(&qpc_frequency)
|
||||||
|
|||||||
Reference in new issue
Block a user