package monotime
import "github.com/coreos/etcd/pkg/monotime"
Package monotime provides a fast monotonic clock source.
Index ¶
Types ¶
type Time ¶
type Time uint64
Time represents a point in monotonic time
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 ¶
Source Files ¶
- Version
- v3.2.27+incompatible
- Published
- Sep 17, 2019
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 hour ago –
Tools for package owners.