It's not removed, it's moved to a separate file as it's problematic to use in tests, commit 06c2631 talks about why.
noselasd•14h ago
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
kiitos•13h ago
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...
jsw•14h ago
For simple high-frequency time deltas, I've found this function wins on the perf front:
deepsun•15h ago
deepsun•14h ago
[1] https://github.com/VictoriaMetrics/VictoriaMetrics/commit/c2...
noselasd•14h ago
noselasd•14h ago
kiitos•13h ago