2 ms·
Most CPUs run at > 1GHz these days so 1ns is already not precise enough to count cycles, but is small enough that it will be fine for the vast majority of use c
by mytailorisrich 6y ago
Most CPUs run at > 1GHz these days so 1ns is already not precise enough to count cycles, but is small enough that it will be fine for the vast majority of use cases. If you need picosecond accuracy you are probably doing something that requires special hardware anyway.
These other aspect is that 64 bits allow such a huge interval that it makes sense to use it. Even counting in nanoseconds increments this allows for a monotonic counter to run over literally hundreds of years.
So 64 bits in increments of 1ns (or close to) is both doable on most modern hardware and allows for the vast majority of use cases for decades to come (if not longer) without have to think about changing it again and again.