Versions in this module Expand all Collapse all v1 v1.0.0 Apr 17, 2016 Changes in this version + func Began(interval uint, now uint) time.Time + type Clock struct + func NewClock(tickerFactory TickerFactory, nowFunc func() int64) *Clock + func (clock *Clock) Add(c chan time.Time, atInterval uint, sync bool) + func (clock *Clock) ETA(c chan time.Time) float64 + func (clock *Clock) Remove(c chan time.Time) + type EvenTicker struct + func NewEvenTicker(atInterval uint, sleep func(time.Duration)) *EvenTicker + func (et *EvenTicker) Add(c chan time.Time) + func (et *EvenTicker) ETA(nowNanosecond int64) float64 + func (et *EvenTicker) Remove(c chan time.Time) + func (et *EvenTicker) Run(nowNanosecond int64) + func (et *EvenTicker) Stop() + type Manager interface + Add func(c chan time.Time, atInterval uint, sync bool) + ETA func(c chan time.Time) float64 + Remove func(c chan time.Time) + type RealTickerFactory struct + func (f *RealTickerFactory) Make(atInterval uint, sync bool) Ticker + type Ticker interface + Add func(c chan time.Time) + ETA func(now int64) float64 + Remove func(c chan time.Time) + Run func(nowNanosecond int64) + Stop func() + type TickerFactory interface + Make func(atInterval uint, sync bool) Ticker + type WaitTicker struct + func NewWaitTicker(atInterval uint) *WaitTicker + func (wt *WaitTicker) Add(c chan time.Time) + func (wt *WaitTicker) ETA(now int64) float64 + func (wt *WaitTicker) Remove(c chan time.Time) + func (wt *WaitTicker) Run(nowNanosecond int64) + func (wt *WaitTicker) Stop()