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

Method SetTime

phc/device.go:166–166  ·  view source on GitHub ↗

SetTime sets the time of the PHC clock

(t time.Time)

Source from the content-addressed store, hash-verified

164
165// SetTime sets the time of the PHC clock
166func (dev *Device) SetTime(t time.Time) error { return clockSetTime(dev, t) }
167
168func (dev *Device) Read(buffer []byte) (int, error) {
169 return syscall.Read(int(dev.Fd()), buffer)

Callers 1

setPHCFunction · 0.80

Calls 1

clockSetTimeFunction · 0.85

Tested by

no test coverage detected