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.
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 fortime.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.