//! A shared clock for aligning concurrently-produced tracks.
use Instant;
/// A monotonic clock for stamping media frames so that tracks produced
/// concurrently, e.g. an audio and a video capture running on separate
/// threads, land on a single timeline.
///
/// Create one [`Clock`] and sample it ([`micros`](Self::micros)) from each
/// producer: because they share an epoch, frames captured at the same instant
/// get the same timestamp, keeping the tracks in sync. It is `Copy`, so it's
/// cheap to hand to several producers.