Versions in this module Expand all Collapse all v0 v0.5.0 Oct 20, 2026 Changes in this version + type Clock interface + NewTimer func(d time.Duration) Timer + Now func() time.Time + WithTimeout func(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc) + func System() Clock + type Fake struct + func NewFake(start time.Time) *Fake + func (f *Fake) Advance(d time.Duration) + func (f *Fake) NewTimer(d time.Duration) Timer + func (f *Fake) Now() time.Time + func (f *Fake) Timers() int + func (f *Fake) WaitForTimers(n int) + func (f *Fake) WithTimeout(parent context.Context, d time.Duration) (context.Context, context.CancelFunc) + type Timer interface + C func() <-chan time.Time + Reset func(d time.Duration) + Stop func()