Skip to main content

Module clock

Module clock 

Source
Expand description

Helpers for normalizing device PTS and monotonic clocks to shared i64 nanoseconds.

Loopback sources have device-clock PTS, while microphone (cpal) sources have only relative, opaque timestamps. The core maps both to a shared monotonic clock using the origin offset captured when the source opens. Cross-stream synchronization is best effort.

Structs§

ClockNormalizer
Normalizes device PTS to the shared monotonic clock.

Functions§

monotonic_now_ns
Returns the current process monotonic clock value in nanoseconds.