MCPcopy
hub / github.com/tailscale/tailscale / maybeGetRealTime

Method maybeGetRealTime

tstest/clock.go:161–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159}
160
161func (c *Clock) maybeGetRealTime() time.Time {
162 if c.realTimeClock == nil {
163 return time.Time{}
164 }
165 return c.realTimeClock.Now()
166}
167
168func (c *Clock) advanceLocked(now time.Time, add time.Duration) {
169 if !now.IsZero() {

Callers 6

NowMethod · 0.95
AdvanceMethod · 0.95
AdvanceToMethod · 0.95
NewTickerMethod · 0.95
NewTimerMethod · 0.95
AfterFuncMethod · 0.95

Implementers 3

DefaultClocktstime/tstime.go
StdClocktstime/tstime.go
Clocktstest/clock.go

Calls 1

NowMethod · 0.65

Tested by

no test coverage detected