2 ms·
This is why you should be using the system's monotonic clock source; they steadily increase and never shift backwards or forwards. They aren't, however, guarant
by zaarn 8y ago
This is why you should be using the system's monotonic clock source; they steadily increase and never shift backwards or forwards. They aren't, however, guaranteed to have any relation to real time between two measurements.
There is plenty of code that has problems with time shifts, simply look at how often software crashes or misbehaves when there are leapseconds. Cloudflare experiences some of their code crashing because over a leap second, the time a request took suddenly became negative.