package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Functions

GetClock returns the global Clock object.
NewInterval creates a new Interval from the provided times.
SetTestClockTime sets the 'test' implementation time to the provided value.
SetTestClockUncertainty sets the 'test' implementation uncertainty to the provided value.
UseTestClock is meant to be used in tests to start using the test clock.

# Structs

Interval describes a time interval.
TestClock is an implementation of Clock for tests, where it is possible to set the current time and the uncertainty at any time.
TimeClock is an implementation of Clock that uses time.Now() and a flag-configured uncertainty.

# Interfaces

Clock returns the current time.