//
pkg.gl
Category
github.com/echohead/yarpc-go
internal
clock
package
1.27.2
Repository:
https://github.com/echohead/yarpc-go.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
0
Files
208 SLOC
#
Functions
NewFake
NewFake returns an instance of a fake clock.
NewReal
NewReal returns an instance of a real clock (changing in the very real fourth dimension).
#
Structs
FakeClock
FakeClock represents a fake clock that only moves forward programmically.
FakeTimer
FakeTimer represents a single event.
RealClock
RealClock implements a real-time clock by simply wrapping the time package functions.
#
Interfaces
Clock
Clock represents an interface to the functions in the standard library time package.
Timer
Timer represents an individual timer in a clock, either real or fake.