MCPcopy Index your code
hub / github.com/tailscale/tailscale / GetStep

Method GetStep

tstest/clock.go:233–238  ·  view source on GitHub ↗

GetStep returns the amount that simulated time advances on every call to Now.

()

Source from the content-addressed store, hash-verified

231
232// GetStep returns the amount that simulated time advances on every call to Now.
233func (c *Clock) GetStep() time.Duration {
234 c.init()
235 c.mu.Lock()
236 defer c.mu.Unlock()
237 return c.step
238}
239
240// SetStep updates the amount that simulated time advances on every call to Now.
241func (c *Clock) SetStep(d time.Duration) {

Callers 5

TestZeroInitClockFunction · 0.95
TestClockSetStepFunction · 0.95
TestClockAdvanceFunction · 0.95

Implementers 3

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

Calls 3

initMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by 5

TestZeroInitClockFunction · 0.76
TestClockSetStepFunction · 0.76
TestClockAdvanceFunction · 0.76