human-duration
human-duration converts a std::time::Duration to a human readable string.
Examples
use human_duration;
let duration = new;
assert_eq!;
let duration = new;
assert_eq!;
Usage
Run
or manually add it to your Cargo.toml:
[]
= "0.1"
Then use the human_duration function:
use human_duration;
// somewhere in your code:
let duration = new;
println!;
License
MIT