xtime

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() time.Time

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL