-#[allow(dead_code)]
-pub fn measure<Out, F: FnOnce() -> Out>(f: F) -> (Out, time::Duration) {
- let start = time::now();
+/// This function will measure how long it takes to execute the given lambda
+/// and return a tuple of the result of the lambda and a duration object.
+pub fn measure<Out, F: FnOnce() -> Out>(f: F) -> (Out, Duration) {
+ let start = Instant::now();