Re:Monotonic and wall clock time in the Go time package
by kiitos on Friday July 25, 2025 @03:47PM
(#44687537)
This package spawns a goroutine that updates an atomic value every second based on a time.Time from a time.Ticker, and its functions load that atomic value. This is not really comparable to anything in package time in any useful way...
Re:Monotonic and wall clock time in the Go time package
by noselasd on Friday July 25, 2025 @02:48PM
(#44686784)
It's a bit specialized though, it's just a cached value of a time.NewTicker updating once per second and the article talks about this in the "Schedule Based on Monotonic Time" section
[1] https://github.com/VictoriaMetrics/VictoriaMetrics/commit/c2...