Versions in this module Expand all Collapse all v2 v2.1.0 Jan 20, 2024 v2.0.0 Jan 18, 2024 Changes in this version + type Clock interface + After func(d time.Duration) <-chan time.Time + AfterFunc func(d time.Duration, f func()) Timer + Now func() time.Time + Since func(t time.Time) time.Duration + Sleep func(d time.Duration) + Tick func(d time.Duration) <-chan time.Time + Ticker func(d time.Duration) Ticker + Timer func(d time.Duration) Timer + Until func(t time.Time) time.Duration + WithDeadline func(parent context.Context, d time.Time) (context.Context, context.CancelFunc) + WithTimeout func(parent context.Context, t time.Duration) (context.Context, context.CancelFunc) + type Duration = time.Duration + type Mock interface + Add func(duration time.Duration) + Set func(time time.Time) + WaitForAllTimers func() time.Time + type Ticker interface + Chan func() <-chan time.Time + Reset func(duration time.Duration) + Stop func() + type Timer interface + Chan func() <-chan time.Time + Reset func(duration time.Duration) bool + Stop func() bool