Profiling tweaks

This commit is contained in:
Aleksey Kladov 2020-07-11 03:04:37 +02:00
parent 539659cde3
commit e7ba7f47a7
3 changed files with 9 additions and 0 deletions

View file

@ -87,6 +87,8 @@ where
Ok(())
}
}
#[must_use]
pub fn timeit(label: &'static str) -> impl Drop {
struct Guard {
label: &'static str,