Expand description

#Monotonic Clocks

This a convenience crate provides a monotonic clock for measuring durations that can be anchored to a specific point in time.

Example

use monotonic_clock::Clock;
use std::thread;
use std::time::Duration;
let clock = Clock::new();
let start = clock.now();
thread::sleep(Duration::from_millis(100));
let end = clock.now();
assert!(end - start >= Duration::from_millis(100));

Structs

A monotonic clock that can be anchored to a specific Epoch.
Provides a starting timestamp in nanoseconds from UNIX_EPOCH.

Traits

Monotonic Clock