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

Method ReadSysoffExtendedRealTimeClock1

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

ReadSysoffExtendedRealTimeClock1 reads the precise time from the PHC along with REAL_TIME_CLOCK SYS time to measure the call delay. The samples parameter is set to 1.

()

Source from the content-addressed store, hash-verified

74// ReadSysoffExtendedRealTimeClock1 reads the precise time from the PHC along with REAL_TIME_CLOCK SYS time to measure the call delay.
75// The samples parameter is set to 1.
76func (dev *Device) ReadSysoffExtendedRealTimeClock1() (*PTPSysOffsetExtended, error) {
77 return dev.readSysoffExtendedClockID(1, unix.CLOCK_REALTIME)
78}
79
80// ReadSysoffPrecise reads the precise time from the PHC along with SYS time to measure the call delay.
81func (dev *Device) ReadSysoffPrecise() (*PTPSysOffsetPrecise, error) {

Callers 2

TimeAndOffsetFromDeviceFunction · 0.80
TimeFunction · 0.80

Calls 1

Tested by

no test coverage detected