MCPcopy Index your code
hub / github.com/coder/coder / timeNow

Method timeNow

coderd/provisionerdserver/provisionerdserver.go:277–279  ·  view source on GitHub ↗

timeNow should be used when trying to get the current time for math calculations regarding workspace start and stop time.

(tags ...string)

Source from the content-addressed store, hash-verified

275// timeNow should be used when trying to get the current time for math
276// calculations regarding workspace start and stop time.
277func (s *server) timeNow(tags ...string) time.Time {
278 return dbtime.Time(s.Clock.Now(tags...))
279}
280
281// heartbeatLoop runs heartbeatOnce at the interval specified by HeartbeatInterval
282// until the lifecycle context is canceled.

Callers 9

heartbeatLoopMethod · 0.95
defaultHeartbeatMethod · 0.95
AcquireJobWithCancelMethod · 0.95
acquireProtoJobMethod · 0.95
UpdateJobMethod · 0.95
FailJobMethod · 0.95

Calls 1

TimeFunction · 0.92

Tested by

no test coverage detected