package
0.0.0-20160920194302-ad86efcaa21b
Repository: https://github.com/a10y/cockroach.git
Documentation: pkg.go.dev
# Functions
NewClock creates a new hybrid logical clock associated with the given physical clock, initializing both wall time and logical time with zero.
NewManualClock returns a new instance, initialized with specified timestamp.
No description provided by the author
UnixNano returns the local machine's physical nanosecond unix epoch timestamp as a convenience to create a HLC via c := hlc.NewClock(hlc.UnixNano).
# Variables
No description provided by the author
No description provided by the author
MaxTimestamp is the max value allowed for Timestamp.
MinTimestamp is the min value allowed for Timestamp.
ZeroTimestamp is an empty timestamp.
# Structs
Clock is a hybrid logical clock.
ManualClock is a convenience type to facilitate creating a hybrid logical clock whose physical clock is manually controlled.
Timestamp represents a state of the hybrid logical clock.