sort out units to make things happier
This commit is contained in:
1 parent
d325ee4b91
commit
45b742be23
1 file changed
+1
-1
@@ -24,6 +24,6 @@ _get_tsc_frequency :: proc "contextless" () -> u64 {
|
|||||||
qpc_frequency: win32.LARGE_INTEGER
|
qpc_frequency: win32.LARGE_INTEGER
|
||||||
win32.QueryPerformanceFrequency(&qpc_frequency)
|
win32.QueryPerformanceFrequency(&qpc_frequency)
|
||||||
|
|
||||||
frequency = ((tsc_end - tsc_begin) * qpc_frequency) / (qpc_end - qpc_begin)
|
frequency = u64((u128(tsc_end - tsc_begin) * u128(qpc_frequency)) / u128(qpc_end - qpc_begin))
|
||||||
return frequency
|
return frequency
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user