full
Temporal quantification.
Using Instant to calculate how long a function took to run:
Instant
let now = Instant::now(); // Calling a slow function, it may take a while slow_function(); let elapsed_time = now.elapsed(); println!("Running slow_function() took {} seconds.", elapsed_time.as_secs());
Duration