Commit c6c6e08b authored by Simon Wörner's avatar Simon Wörner

added thousand separator

parent 378feb60
......@@ -4,5 +4,6 @@ version = "0.1.0"
authors = ["Simon Wörner <git@simon-woerner.de>"]
[dependencies]
separator = "^0.3.1"
time = "^0.1.36"
nix = "0.8.1"
\ No newline at end of file
extern crate time;
extern crate separator;
use self::time::precise_time_ns;
use self::separator::Separatable;
#[derive(Debug)]
pub struct Measure {
......@@ -75,6 +77,9 @@ impl Measure {
impl Drop for Measure {
fn drop(&mut self) {
println!("{}:\n\tmin: {}\n\tmax: {}", self.name, self.min, self.max)
println!("{}:\n\tmin: {} ns\n\tmax: {} ns",
self.name,
self.min.separated_string(),
self.max.separated_string())
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment