Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 v0.1.0 Sep 6, 2026 Changes in this version + var ErrBackwards = errors.New("monotonic clock cannot move backwards") + type Clock interface + NowNS func() uint64 + type Manual struct + func NewManual(startNS uint64) *Manual + func (manual *Manual) AdvanceNS(durationNS uint64) + func (manual *Manual) AdvanceToNS(timestampNS uint64) + func (manual *Manual) AfterFunc(delay time.Duration, callback func()) Timer + func (manual *Manual) NowNS() uint64 + type Scheduler interface + AfterFunc func(time.Duration, func()) Timer + type System struct + func NewSystem() *System + func (system *System) AfterFunc(delay time.Duration, callback func()) Timer + func (system *System) NowNS() uint64 + type Timer interface + Stop func() bool + type Virtual struct + func NewVirtual(startNS uint64) *Virtual + func (clock *Virtual) AdvanceNS(durationNS uint64) (uint64, error) + func (clock *Virtual) AdvanceToNS(timestampNS uint64) error + func (clock *Virtual) NowNS() uint64