How is it possible to benchmark programs in Rust? For example, how would I get execution time of program in seconds?
I created a small crate for this (measure_time), which logs or prints the time until end of scope.
#[macro_use] extern crate measure_time; fn main() { print_time!("measure function"); do_stuff(); }