ClockID derives the clock ID from the file descriptor number - see clock_gettime(3), FD_TO_CLOCKID macros
()
| 43 | // ClockID derives the clock ID from the file descriptor number - |
| 44 | // see clock_gettime(3), FD_TO_CLOCKID macros |
| 45 | func (dev *Device) ClockID() int32 { return unix.FdToClockID(int(dev.Fd())) } |
| 46 | |
| 47 | // Time returns time from the PTP device using the clock_gettime syscall |
| 48 | func (dev *Device) Time() (time.Time, error) { |
no test coverage detected