-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Occasionally the duration reported by calling a := time.Now(); b := time.Now(); c := b.Since(a) can be negative, since Go does not use a monotonic clock source for time.Now() calls. This affected production code after the leap second yesterday. This is being discussed at e.g. golang/go#12914 but it might be good to consider switching to something like https://godoc.org/github.com/davecheney/junk/clock in the meantime.
I'm still researching this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels