Function fetch_results
pub fn fetch_results() -> Vec<ExecDuration>Expand description
Fetch execution metrics. Typically, this function needs to be called once the execution of all measured blocks is done.
ยงExamples
use exec_duration;
use exec_duration::ExecProbe;
let mut ep = ExecProbe::new("main");
// code
// fetch results
let list = exec_duration::fetch_results();
for r in list.iter() {
println!("{}", r);
}