mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Make QPC thread local again.
This commit is contained in:
@@ -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