Skip to main content

Module timestamp

Module timestamp 

Source

Structsยง

NtpDuration
High-resolution signed duration for offset/delay calculations. Stored as signed nanoseconds in i128 for sub-nanosecond precision with the lower 32 bits representing fractional nanoseconds.
NtpTimestamp
NTP uses a 64-bit timestamp: 32-bit seconds since 1900-01-01 + 32-bit fraction. Stored as a single u64 for arithmetic efficiency. Upper 32 bits = seconds, lower 32 bits = fractional seconds.
PtpTimestamp
PTP uses an 80-bit timestamp: 48-bit seconds + 32-bit nanoseconds.