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

Function clockStep

phc/adjtime.go:57–63  ·  view source on GitHub ↗

clockStep steps PHC clock by given step

(dev *Device, step time.Duration)

Source from the content-addressed store, hash-verified

55
56// clockStep steps PHC clock by given step
57func clockStep(dev *Device, step time.Duration) error {
58 state, err := clock.Step(dev.ClockID(), step)
59 if err == nil && state != unix.TIME_OK {
60 return &errorClockState{path: dev.File().Name(), st: state}
61 }
62 return err
63}
64
65func clockSetTime(dev *Device, t time.Time) error {
66 ts, err := unix.TimeToTimespec(t)

Callers 1

StepMethod · 0.85

Calls 4

StepFunction · 0.92
ClockIDMethod · 0.80
NameMethod · 0.65
FileMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…