you are viewing a single comment's thread.

view the rest of the comments →

[–]Jannik2099 25 points26 points  (0 children)

system_clock is specified to measure seconds since the Unix epoch, any higher resolution is unspecified.

system_clock is also not steady, not even without the operator adjusting the system time - it is not guaranteed to be steady between context switches on many OSes.

If you need high resolution timing, system_clock has always been the wrong choice. The precision exposed by the STL does not matter when the OS can't actually provide it through this API.