clock: Better URL to explain being monotonic

This commit is contained in:
Hajime Hoshi 2019-05-09 02:45:43 +09:00
parent 009fa9accd
commit 0bed5a96d5

View File

@ -25,6 +25,6 @@ func now() int64 {
// time.Now() is not reliable until GopherJS supports performance.now().
//
// performance.now is monotonic:
// https://developers.google.com/web/updates/2012/08/When-milliseconds-are-not-enough-performance-now#monotonic_time
// https://www.w3.org/TR/hr-time-2/#sec-monotonic-clock
return int64(js.Global().Get("performance").Call("now").Float() * float64(time.Millisecond))
}