News for hackers. Stuff that matters.
Re:Go: What We Got Right, What We Got Wrong by masklinn on Friday January 05, 2024 @05:11AM (#38877467)
Even the "fix" is... ugh: instead of exposing monotonic time, time.Time contains both a wallclock time and an optional monotonic time, and operations update and use "the right one(s)".

Also it's not that the implementation was incorrect, it's that Go simply didn't provide access to monotonic time in any way. It had that feature internally, just gave no way to access it (hence https://github.com/golang/go/issues/16658).

There are no comments on this comment yet.