//
pkg.gl
Category
github.com/bountylabs/go-metrics
clock
package
0.0.0-20200711015822-b6401396e344
Repository:
https://github.com/bountylabs/go-metrics.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
1
Files
281 SLOC
#
Functions
New
New returns an instance of a real-time clock.
NewMock
NewMock returns an instance of a mock clock.
#
Structs
Calls
Calls keeps track of the count of calls for each of the methods on the Clock interface.
Mock
Mock represents a mock clock that only moves forward programmically.
Ticker
Ticker holds a channel that receives "ticks" at regular intervals.
Timer
Timer represents a single event.
#
Interfaces
Clock
Clock represents an interface to the functions in the standard library time package.