Trait pipeviewer::stats::TimeOutput
source · [−]Expand description
The TimeOutput trait adds a .as_time()
method to u64
Example
Here is an example of how to use it.
use pipeviewer::stats::TimeOutput;
assert_eq!(65_u64.as_time(), String::from("0:01:05"))