Versions in this module Expand all Collapse all v1 v1.0.0 Apr 11, 2024 Changes in this version + type FakeClock struct + func NewFakeClock(t time.Time) *FakeClock + func (f *FakeClock) After(d time.Duration) <-chan time.Time + func (f *FakeClock) AfterFunc(d time.Duration, cb func()) clock.Timer + func (f *FakeClock) HasWaiters() bool + func (f *FakeClock) NewTicker(d time.Duration) clock.Ticker + func (f *FakeClock) NewTimer(d time.Duration) clock.Timer + func (f *FakeClock) SetTime(t time.Time) + func (f *FakeClock) Sleep(d time.Duration) + func (f *FakeClock) Step(d time.Duration) + func (f *FakeClock) Tick(d time.Duration) <-chan time.Time + 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) AfterFunc(d time.Duration, f func()) clock.Timer + func (*IntervalClock) NewTicker(d time.Duration) clock.Ticker + func (*IntervalClock) NewTimer(d time.Duration) clock.Timer + func (*IntervalClock) Sleep(d time.Duration) + func (*IntervalClock) Tick(d time.Duration) <-chan time.Time + func (i *IntervalClock) Now() time.Time + func (i *IntervalClock) Since(ts time.Time) time.Duration + type SimpleIntervalClock struct + Duration time.Duration + Time time.Time + func (i *SimpleIntervalClock) Now() time.Time + func (i *SimpleIntervalClock) Since(ts time.Time) time.Duration