pub fn time_it<F, R>(msg: &str, f: F) -> R where
    F: FnOnce() -> R,