by 323 · 3y ago · 0 comments
All the regular Linux/Windows monotonic clocks are broken in some scenarios and will go back or just not increase.
On most systems CLOCK_MONOTONIC actually is monotonic. It's not necessarily steady or providing SI seconds, but its monotonic.
You'll need stuff like GPS if you want a monotonic, steady clock synchronized with other clocks.