Module base::cross_process_instant

source ·
Expand description

An implementation of a monotonic, nanosecond precision timer, like std::time::Instant that can be serialized and compared across processes.

Modules§

Structs§

  • A monotonic, nanosecond precision timer that can be used cross-process. The value stored internally is purposefully opaque as the origin is platform-specific. They can be compared and time_03::Duration can be found by subtracting one from another. The time crate is used in this case instead of std::time so that durations can be negative.