Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Now ¶
Now returns the current Time with nanosecond precision. On machines that natively provide nanosecond precision Now just returns time.Now(). Otherwise Now takes a bit slower path using the monotonic time to calculate the nanoseconds manually.
TODO: Remove as soon as go natively supports nanosecond precision on all machines.
func SupportsNanoseconds ¶ added in v0.2.8
func SupportsNanoseconds() bool
SupportsNanoseconds returns whether the machine supports nanosecond precision.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.