Skip to content
Snippets Groups Projects
Unverified Commit 1be50141 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

add back documentation of `timeit`

parent 15cb69eb
Branches
Tags
No related merge requests found
......@@ -57,6 +57,12 @@ where
);
}
/// measure the time it takes to do something
///
/// # Example
/// ```rust
/// let t = timeit(|| 1 + 2);
/// ```
pub fn timeit<F, O>(mut f: F) -> Duration
where
F: FnMut() -> O,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment