Sub returns the estimated difference between two PHC SYS_OFFSET_PRECISE readings
(a *PTPSysOffsetPrecise)
| 158 | |
| 159 | // Sub returns the estimated difference between two PHC SYS_OFFSET_PRECISE readings |
| 160 | func (precise *PTPSysOffsetPrecise) Sub(a *PTPSysOffsetPrecise) time.Duration { |
| 161 | return offsetBetweenPreciseReadings(a, precise) |
| 162 | } |
| 163 | |
| 164 | // offsetBetweenExtendedReadings returns estimated difference between two PHC SYS_OFFSET_EXTENDED readings |
| 165 | func offsetBetweenExtendedReadings(extendedA, extendedB *PTPSysOffsetExtended) (time.Duration, error) { |