MCPcopy Index your code
hub / github.com/uber/aresdb / SetClockImplementation

Function SetClockImplementation

utils/time.go:47–49  ·  view source on GitHub ↗

SetClockImplementation sets implementation to use passed in nowFunc

(f NowFunc)

Source from the content-addressed store, hash-verified

45
46// SetClockImplementation sets implementation to use passed in nowFunc
47func SetClockImplementation(f NowFunc) {
48 nowFunc = f
49}
50
51// SetCurrentTime sets the clock implementation to the specified time,
52func SetCurrentTime(t time.Time) {

Calls

no outgoing calls

Tested by

no test coverage detected