Skip to main content

Module time

Module time 

Source
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ยง

SystemInstant
A monotonic Instant paired with the wall-clock time it was taken at.