4 releases
Uses old Rust 2015
0.0.5 | Sep 4, 2017 |
---|---|
0.0.4 | Sep 4, 2017 |
0.0.2 | Sep 4, 2017 |
0.0.0 | Aug 31, 2017 |
#305 in Profiling
8KB
163 lines
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
lib.rs
:
easytiming provides tools for taking timing measurement for functions, code blocks
and other elements of Rust source code. It is flexible enough to accomodate different
output options. It plays nice with log
and slog
. It works on stable in its basic form.
In addition, when used on nightly, it can be invoked as an attribute (unimplemented yet).
Quick start
use easytiming::Timing;
fn do_something() {
let _t: Timing = Timing::new("do_something() function");
// Do some important stuff here
// ...
}
Dependencies
~80KB