mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
@@ -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)
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ benchmark_xxhash64 :: proc(options: ^time.Benchmark_Options, allocator := contex
|
|||||||
}
|
}
|
||||||
|
|
||||||
benchmark_print :: proc(name: string, options: ^time.Benchmark_Options) {
|
benchmark_print :: proc(name: string, options: ^time.Benchmark_Options) {
|
||||||
fmt.printf("\t[%v] %v rounds, %v bytes procesed in %v ns\n\t\t%5.3f rounds/s, %5.3f MiB/s\n",
|
fmt.printf("\t[%v] %v rounds, %v bytes processed in %v ns\n\t\t%5.3f rounds/s, %5.3f MiB/s\n",
|
||||||
name,
|
name,
|
||||||
options.rounds,
|
options.rounds,
|
||||||
options.processed,
|
options.processed,
|
||||||
|
|||||||
Reference in New Issue
Block a user