timeit

Macro timeit 

Source
macro_rules! timeit {
    ($code:block) => { ... };
}
Expand description

Runs a block several times and outputs the average time per loop. The number of loops is determined automatically.