pub fn measure_time<R>(f: impl FnOnce() -> R) -> Duration
Executes the given closure block and returns the duration of elapsed time interval.