pub fn took_print<T, F>(description: &str, f: F) -> Twhere
F: FnOnce() -> T,Expand description
Measure run time of given function, print elapsed time.
Prints the following formatted text to stdout:
description took 0 sReturns the function result.