Documentation
¶
Index ¶
- Variables
- func After(d time.Duration) <-chan time.Time
- func Notify(c chan<- TimeTravelEvent) func()
- func RemainingDuration(from time.Time, nonScaledDuration time.Duration) time.Duration
- func ScaledDuration(d time.Duration) time.Duration
- func SetSpeed(s float64) func()
- func SetTime(target time.Time, opt Option) func()
- func TimeNow() time.Time
- type Option
- type Ticker
- type TickerProxy
- type TimeTravelEvent
- type Timeline
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Notify ¶ added in v0.154.0
func Notify(c chan<- TimeTravelEvent) func()
func RemainingDuration ¶
Types ¶
type TickerProxy ¶ added in v0.160.0
TickerProxy helps enable us to switch freely between time.Ticker and clock's Ticker implementation.
func (*TickerProxy) Reset ¶ added in v0.160.0
func (tp *TickerProxy) Reset(d time.Duration)
func (*TickerProxy) Stop ¶ added in v0.160.0
func (tp *TickerProxy) Stop()
type TimeTravelEvent ¶ added in v0.160.0
func Check ¶ added in v0.160.0
func Check() (TimeTravelEvent, bool)
Click to show internal directories.
Click to hide internal directories.