Versions in this module Expand all Collapse all v0 v0.6.12 Dec 12, 2023 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) HasWaiters() bool + func (f *FakeClock) NewTimer(d time.Duration) clock.Timer + func (f *FakeClock) Now() time.Time + func (f *FakeClock) SetTime(t time.Time) + func (f *FakeClock) Since(ts time.Time) time.Duration + 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 IntervalClock struct + Duration time.Duration + Time time.Time + func (*IntervalClock) After(d time.Duration) <-chan time.Time + 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