pub fn now() -> MonotonicAvailable on crate feature
std only.Expand description
Captures the current monotonic time.
Shortcut for Monotonic::now. Pair it with elapsed to measure how
long an operation took.
ยงExamples
use clock_lib as clock;
let start = clock::now();
// ... work ...
let took = clock::elapsed(start);