modulepackage
0.0.0-20161224195152-e4ec0ab5053e
Repository: https://github.com/stephanos/clock.git
Documentation: pkg.go.dev
# README
# Functions
After waits for the duration to elapse and then sends the current time on the returned channel.
New returns a new Clock that mirrors the behaviour of the time package.
NewMock returns a new manipulable Clock.
Now returns the current local time.
Sleep pauses the current goroutine for at least the duration d.
Tick is a convenience wrapper for NewTicker providing access to the ticking channel only.
Ticker returns a new Ticker containing a channel that will send the time with a period specified by the duration argument.
# Variables
Work mirrors the behaviour of Go's time package.