MCPcopy
hub / github.com/uber/aresdb / ResetClockImplementation

Function ResetClockImplementation

utils/time.go:42–44  ·  view source on GitHub ↗

ResetClockImplementation resets implementation to use time.Now

()

Source from the content-addressed store, hash-verified

40
41// ResetClockImplementation resets implementation to use time.Now
42func ResetClockImplementation() {
43 nowFunc = time.Now
44}
45
46// SetClockImplementation sets implementation to use passed in nowFunc
47func SetClockImplementation(f NowFunc) {

Calls

no outgoing calls

Tested by

no test coverage detected