- Published on
Investigation · Part 10 of 20 · When the benchmark lies
Which Clock to Use When You Measure Time
I measured eight of the clocks that clock_gettime can read, and on my laptop two of them disagreed by 43,257 ns after 20 seconds. I measured their resolution, their cost, which ones enter the kernel, and which clocks Rust and Python use.