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