Documentation ¶
Overview ¶
Package clock abstracts time source.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clock ¶
type Clock interface { Now() time.Time Timer(d time.Duration) Timer Ticker(d time.Duration) Ticker }
Clock is current time source.
var System Clock = systemClock{}
System Clock.
Click to show internal directories.
Click to hide internal directories.