MCPcopy Create free account
hub / github.com/facebook/time / setTime

Function setTime

clock/clock_setters.go:35–38  ·  view source on GitHub ↗
(tx *unix.Timex, sec, usec time.Duration)

Source from the content-addressed store, hash-verified

33}
34
35func setTime(tx *unix.Timex, sec, usec time.Duration) {
36 setTimexField(&tx.Time.Sec, float64(sec))
37 setTimexField(&tx.Time.Usec, float64(usec))
38}

Callers 3

TestSetTimeFunction · 0.85
TestSetTimeNegativeFunction · 0.85
StepFunction · 0.85

Calls 1

setTimexFieldFunction · 0.85

Tested by 2

TestSetTimeFunction · 0.68
TestSetTimeNegativeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…