18 ms·
First off, yay easy access to monotonic time! This is good. Now whilst the author acknowledges Go can't rely on systems to smear leap seconds it was hopelessly
by gbrown_ 10y ago
First off, yay easy access to monotonic time! This is good.
Now whilst the author acknowledges Go can't rely on systems to smear leap seconds it was hopelessly naive to think they could in the first place.
I hoped that the trend toward reliable, reset-free computer clocks would
continue and that Go programs could safely use the system wall clock to measure
elapsed times. I was wrong. Although Akamai, Amazon, and Microsoft use leap
smears now too, many systems still implement leap seconds by clock reset.
I'm not trying to make a dig at the author here it's just a topic that grinds my gears so to speak. I hope others don't pick up this idea that you can make assumptions about how the system clock will behave.