Versions in this module Expand all Collapse all v0 v0.0.3 Feb 22, 2024 v0.0.2 Feb 22, 2024 Changes in this version + type AbsTime int64 + func Now() AbsTime + func (t AbsTime) Add(d time.Duration) AbsTime + func (t AbsTime) Sub(t2 AbsTime) time.Duration + type Alarm struct + func NewAlarm(clock Clock) *Alarm + func (e *Alarm) C() <-chan struct{} + func (e *Alarm) Schedule(time AbsTime) + func (e *Alarm) Stop() + type ChanTimer interface + C func() <-chan AbsTime + Reset func(time.Duration) + type Clock interface + After func(time.Duration) <-chan AbsTime + AfterFunc func(d time.Duration, f func()) Timer + NewTimer func(time.Duration) ChanTimer + Now func() AbsTime + Sleep func(time.Duration) + type Simulated struct + func (s *Simulated) ActiveTimers() int + func (s *Simulated) After(d time.Duration) <-chan AbsTime + func (s *Simulated) AfterFunc(d time.Duration, fn func()) Timer + func (s *Simulated) NewTimer(d time.Duration) ChanTimer + func (s *Simulated) Now() AbsTime + func (s *Simulated) Run(d time.Duration) + func (s *Simulated) Sleep(d time.Duration) + func (s *Simulated) WaitForTimers(n int) + type System struct + func (c System) After(d time.Duration) <-chan AbsTime + func (c System) AfterFunc(d time.Duration, f func()) Timer + func (c System) NewTimer(d time.Duration) ChanTimer + func (c System) Now() AbsTime + func (c System) Sleep(d time.Duration) + type Timer interface + Stop func() bool