mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 23:33:15 +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
|
||||
}
|
||||
|
||||
// @thread_local qpc_frequency: win32.LARGE_INTEGER
|
||||
qpc_frequency: win32.LARGE_INTEGER
|
||||
@thread_local qpc_frequency: win32.LARGE_INTEGER
|
||||
|
||||
if qpc_frequency == 0 {
|
||||
win32.QueryPerformanceFrequency(&qpc_frequency)
|
||||
|
||||
Reference in New Issue
Block a user