Expand description
Conversions between monotonic, Unix and NTP time. Monotonic, Unix and NTP time.
Protocol logic measures time with a monotonic Instant, which cannot go
backwards but has no absolute meaning. RTCP timestamps need the opposite: wall-clock time in
NTP format. SystemInstant captures both once, so either can be derived from the other later
without re-reading a clock that may have been adjusted in between.
Structs§
- System
Instant - A monotonic
Instantpaired with the wall-clock time it was taken at.
Functions§
- near_
leap_ second - Whether the NTP timestamp
ntpfalls where a positive leap second could make it ambiguous: the last second of the last day of a month (UTC) or the second after it.