Versions in this module Expand all Collapse all v0 v0.1.0 Aug 30, 2026 Changes in this version + type Clock interface + NewTicker func(d time.Duration) Ticker + NewTimer func(d time.Duration) Timer + Now func() time.Time + Since func(t time.Time) time.Duration + Sleep func(ctx context.Context, d time.Duration) error + Until func(t time.Time) time.Duration + func OrSystem(c Clock) Clock + func System() Clock + type Fake struct + func NewFake(t time.Time) *Fake + func (f *Fake) Advance(d time.Duration) + func (f *Fake) BlockUntil(n int) + func (f *Fake) BlockUntilContext(ctx context.Context, n int) error + func (f *Fake) Deadlines() []time.Time + func (f *Fake) NewTicker(d time.Duration) Ticker + func (f *Fake) NewTimer(d time.Duration) Timer + func (f *Fake) Now() time.Time + func (f *Fake) Set(t time.Time) + func (f *Fake) Since(t time.Time) time.Duration + func (f *Fake) Sleep(ctx context.Context, d time.Duration) error + func (f *Fake) Until(t time.Time) time.Duration + func (f *Fake) Waiters() int + type Ticker interface + C func() <-chan time.Time + Reset func(d time.Duration) + Stop func() + type Timer interface + C func() <-chan time.Time + Reset func(d time.Duration) bool + Stop func() bool