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

Method readSysoffExtendedClockID

phc/device.go:96–103  ·  view source on GitHub ↗
(samples uint, clockid uint32)

Source from the content-addressed store, hash-verified

94}
95
96func (dev *Device) readSysoffExtendedClockID(samples uint, clockid uint32) (*PTPSysOffsetExtended, error) {
97 value, err := unix.IoctlPtpSysOffsetExtendedClock(int(dev.Fd()), clockid, samples)
98 if err != nil {
99 return nil, err
100 }
101 our := PTPSysOffsetExtended(*value)
102 return &our, nil
103}
104
105func (dev *Device) readSysoffPrecise() (*PTPSysOffsetPrecise, error) {
106 value, err := unix.IoctlPtpSysOffsetPrecise(int(dev.Fd()))

Calls 3

FdMethod · 0.95
PTPSysOffsetExtendedTypeAlias · 0.85

Tested by

no test coverage detected