easytiming

Crates.ioeasytiming
lib.rseasytiming
version0.0.5
sourcesrc
created_at2017-08-31 07:04:38.230248
updated_at2017-09-04 20:39:28.606743
descriptionUtilities for easy timing functions, code blocks, etc
homepagehttps://gitlab.com/imp/easytiming-rs
repositoryhttps://gitlab.com/imp/easytiming-rs.git
max_upload_size
id29996
size20,235
Cyril Plisko (imp)

documentation

https://docs.rs/easytiming

README

easytiming

Easy timing for functions, code blocks etc in Rust

Quick start

Really quick way to start using easytiming is like this:

extern crate easytiming;

use easytiming::Timing;

fn do_something() {
    let _t = Timing::new("do_something() function");
    ...
}

This will produce the next output when run:

"do_something() function" was running for 410420 ns
Commit count: 31

cargo fmt