Attribute Macro simple_func_timer::timer[][src]

#[timer]

Macro to measure the function execution time.

Examples

[dependencies]
simple_func_timer = "0.1"
log = "0.4"
use simple_func_timer::timer;

#[timer(unit = "ns", log = "info")]
fn my_function() {
}