Documentation ¶
Overview ¶
Package timekeeper implements simulated time against the v.io/x/ref/lib/timekeeper.TimeKeeper interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManualTime ¶
type ManualTime interface { timekeeper.TimeKeeper // AdvanceTime advances the current time by d. AdvanceTime(d time.Duration) // Requests provides a channel where the requested delays for After and // Sleep can be observed. Requests() <-chan time.Duration }
ManualTime is a time keeper that allows control over the advancement of time.
func NewManualTime ¶
func NewManualTime() ManualTime
NewManualTime constructs a new instance of ManualTime, with current time set at 0.
Click to show internal directories.
Click to hide internal directories.