Documentation ¶
Overview ¶
Package clock implements a standard clock interface that can be used in place of the time package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Now() time.Time Sleep(time.Duration) NewTicker(time.Duration) Ticker NewTimer(time.Duration) Timer }
Interface represents a clock with the same core functionality available as in the stdlib time package
type Ticker ¶
func WrapTicker ¶
Click to show internal directories.
Click to hide internal directories.