Versions in this module Expand all Collapse all v1 v1.1.0 May 22, 2026 Changes in this version + type Clock interface + AfterFunc func(d time.Duration, f func()) Timer + Now func() time.Time + func Real() Clock + type Mock struct + func NewMock(t time.Time) *Mock + func (m *Mock) Advance(d time.Duration) + func (m *Mock) AfterFunc(d time.Duration, f func()) Timer + func (m *Mock) Now() time.Time + type Timer interface + Reset func(d time.Duration) bool + Stop func() bool