Versions in this module Expand all Collapse all v0 v0.0.2 Mar 17, 2022 v0.0.1 Nov 8, 2021 Changes in this version + type Clock interface + After func(time.Duration) <-chan time.Time + NewTicker func(time.Duration) Ticker + NewTimer func(time.Duration) Timer + Sleep func(time.Duration) + type FakeClock struct + func NewFakeClock(t time.Time) *FakeClock + func (f *FakeClock) After(d time.Duration) <-chan time.Time + func (f *FakeClock) HasWaiters() bool + func (f *FakeClock) NewTicker(d time.Duration) Ticker + func (f *FakeClock) NewTimer(d time.Duration) Timer + func (f *FakeClock) SetTime(t time.Time) + func (f *FakeClock) Sleep(d time.Duration) + func (f *FakeClock) Step(d time.Duration) + type FakePassiveClock struct + func NewFakePassiveClock(t time.Time) *FakePassiveClock + func (f *FakePassiveClock) Now() time.Time + func (f *FakePassiveClock) SetTime(t time.Time) + func (f *FakePassiveClock) Since(ts time.Time) time.Duration + type IntervalClock struct + Duration time.Duration + Time time.Time + func (*IntervalClock) After(d time.Duration) <-chan time.Time + func (*IntervalClock) NewTicker(d time.Duration) Ticker + func (*IntervalClock) NewTimer(d time.Duration) Timer + func (*IntervalClock) Sleep(d time.Duration) + func (i *IntervalClock) Now() time.Time + func (i *IntervalClock) Since(ts time.Time) time.Duration + type PassiveClock interface + Now func() time.Time + Since func(time.Time) time.Duration + type RealClock struct + func (RealClock) After(d time.Duration) <-chan time.Time + func (RealClock) NewTicker(d time.Duration) Ticker + func (RealClock) NewTimer(d time.Duration) Timer + func (RealClock) Now() time.Time + func (RealClock) Since(ts time.Time) time.Duration + func (RealClock) Sleep(d time.Duration) + type Ticker interface + C func() <-chan time.Time + Stop func() + type Timer interface + C func() <-chan time.Time + Reset func(d time.Duration) bool + Stop func() bool