measure_time
The crate provides macros, which measure the time until end of scope.
This is done by creating an object, which measures the time. The time is printed when the object is dropped.
Installation
Simply add a corresponding entry to your Cargo.toml
dependency list:
[]
= "0.4"
= "0.4"
And add this to your crate root (e.g. lib.rs/main.rs):
extern crate measure_time;
extern crate log;
Examples
extern crate measure_time;
extern crate log;
Changelog
Version 0.4
Objects to measure time are only created when the log level is enabled, else None
will be created
Version 0.4.2
Add error and warn levels
Version 0.5.0
change time formatting for improved readability