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

Function clockSetTime

phc/adjtime.go:65–71  ·  view source on GitHub ↗
(dev *Device, t time.Time)

Source from the content-addressed store, hash-verified

63}
64
65func clockSetTime(dev *Device, t time.Time) error {
66 ts, err := unix.TimeToTimespec(t)
67 if err != nil {
68 return err
69 }
70 return unix.ClockSettime(dev.ClockID(), &ts)
71}

Callers 1

SetTimeMethod · 0.85

Calls 3

TimeToTimespecFunction · 0.92
ClockSettimeFunction · 0.92
ClockIDMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…