mirror of
https://github.com/golang/go
synced 2024-11-17 16:24:42 -07:00
time: mention time resolution in docs
Updates #44343 Updates #53824 Change-Id: Ia7234fac4b1b88b3c331328aaa98dc85205e09ba Reviewed-on: https://go-review.googlesource.com/c/go/+/514275 Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
This commit is contained in:
parent
be0e0b06ac
commit
9138743679
@ -76,6 +76,16 @@
|
|||||||
// For debugging, the result of t.String does include the monotonic
|
// For debugging, the result of t.String does include the monotonic
|
||||||
// clock reading if present. If t != u because of different monotonic clock readings,
|
// clock reading if present. If t != u because of different monotonic clock readings,
|
||||||
// that difference will be visible when printing t.String() and u.String().
|
// that difference will be visible when printing t.String() and u.String().
|
||||||
|
//
|
||||||
|
// # Timer Resolution
|
||||||
|
//
|
||||||
|
// Timer resolution varies depending on the Go runtime, the operating system
|
||||||
|
// and the underlying hardware.
|
||||||
|
// On Unix, the resolution is approximately 1ms.
|
||||||
|
// On Windows, the default resolution is approximately 16ms, but
|
||||||
|
// a lower resolution may be requested using [timeBeginPeriod].
|
||||||
|
//
|
||||||
|
// [timeBeginPeriod]: https://learn.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timebeginperiod
|
||||||
package time
|
package time
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
Reference in New Issue
Block a user