macro_rules! timeit {
($t: literal, $x:expr) => { ... };
}
Expand description
ยงUsage
use simple_timer::timeit;
fn hello_world() {
println!("hello world");
}
fn main() {
timeit!("time_1", hello_world());
timeit!("time_two",
{
println!("great weather");
println!("i agree");
}
);
}