pub fn time<F, E>(run: F) -> Result<(), E>where F: FnOnce() -> Result<(), E>,
Run the function run and print the how much time the execution took.
run