pub trait Recording { // Provided methods fn start(&mut self) { ... } fn stop(&mut self) { ... } }
Marks the timed region of a single benchmark iteration.
Start the timed region, just before the benchmarked code runs.
Stop the timed region, just after the benchmarked code runs.