Skip to main content

profile_fn

Function profile_fn 

Source
pub fn profile_fn<F, T>(name: &str, f: F) -> T
where F: FnOnce() -> T,
Expand description

Helper function to profile a block of code and return its result