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

Function SetCurrentTime

utils/time.go:52–56  ·  view source on GitHub ↗

SetCurrentTime sets the clock implementation to the specified time,

(t time.Time)

Source from the content-addressed store, hash-verified

50
51// SetCurrentTime sets the clock implementation to the specified time,
52func SetCurrentTime(t time.Time) {
53 nowFunc = func() time.Time {
54 return t
55 }
56}
57
58// Now returns current time using nowFunc
59func Now() time.Time {

Calls

no outgoing calls

Tested by

no test coverage detected