Versions in this module Expand all Collapse all v1 v1.5.1 Feb 8, 2017 v1.5.0 Oct 23, 2016 Changes in this version + type Clock interface + After func(d time.Duration) <-chan time.Time + Now func() time.Time + Since func(time.Time) time.Duration + Sleep func(d time.Duration) + Tick func(d time.Duration) <-chan time.Time + 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) 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) 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 RealClock struct + func (RealClock) After(d time.Duration) <-chan time.Time + func (RealClock) Now() time.Time + func (RealClock) Since(ts time.Time) time.Duration + func (RealClock) Sleep(d time.Duration) + func (RealClock) Tick(d time.Duration) <-chan time.Time