pub fn record_time<T, F>(accu: &Lock<Duration>, f: F) -> T
where F: FnOnce() -> T,