Documentation ¶
Overview ¶
Package monotime provides a fast monotonic clock source.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Time ¶
type Time int64
Time is a point in time represented in nanoseconds.
func Now ¶
func Now() Time
Now returns the current time in nanoseconds from a monotonic clock. The time returned is based on some arbitrary platform-specific point in the past. The time returned is guaranteed to increase monotonically at a constant rate, unlike time.Now() from the Go standard library, which may slow down, speed up, jump forward or backward, due to NTP activity or leap seconds.
func (Time) Add ¶
Add is analogous to https://golang.org/pkg/time/#Time.Add
func (Time) After ¶
After is analogous to https://golang.org/pkg/time/#Time.After
func (Time) Before ¶
Before is analogous to https://golang.org/pkg/time/#Time.Before
func (Time) Equal ¶
Equal is analogous to https://golang.org/pkg/time/#Time.Equal