took_print

Function took_print 

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

Measure run time of given function, print elapsed time.

Prints the following formatted text to stdout:

description took 0 s

Returns the function result.