9 Jul
2016
9 Jul
'16
9:12 p.m.
On Sat, 09 Jul 2016 12:14:03 +0300, Saku Ytti said:
Check the implementation on your PC. This is why code is broken and people don't even know it's broken. You have to use monotonic time to measure passage of time, which is not particularly easy to do portable, in some languages.
It doesn't help that the POSIX standard doesn't represent leap seconds anyplace, so any elapsed time calculation that crosses a leap second is guaranteed to be wrong....