[][src]Function took::took_print

#[must_use]
pub fn took_print<T, F>(description: &str, f: F) -> T where
    F: FnOnce() -> T, 

Measure run time of given function, print elapsed time.

Prints the following formatted text to stdout:

description took 0 s

Returns the function result.