pub fn elapsed(earlier: Monotonic) -> DurationAvailable on crate feature
std only.Expand description
Returns the Duration elapsed since earlier.
Shortcut for Monotonic::elapsed. The argument is the
Monotonic captured at the start of the interval; the return value
is the time from then until now.
ยงExamples
use clock_lib as clock;
let start = clock::now();
// ... work ...
let took = clock::elapsed(start);