Function time_with

pub fn time_with<T>(name: impl Into<String>, f: impl FnOnce() -> T) -> T