aboutsummaryrefslogtreecommitdiff
path: root/crates/stdx
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-11 02:04:37 +0100
committerAleksey Kladov <[email protected]>2020-07-11 02:04:37 +0100
commite7ba7f47a79a2881cf208ef9d944609e8fd4eec9 (patch)
treefceb4cb7e0f5981f6655b9823e67526805b438ae /crates/stdx
parent539659cde36af73eb7a3a0795bb71b0d66f7d7cd (diff)
Profiling tweaks
Diffstat (limited to 'crates/stdx')
-rw-r--r--crates/stdx/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/stdx/src/lib.rs b/crates/stdx/src/lib.rs
index 08ac6f70f..3b605c79d 100644
--- a/crates/stdx/src/lib.rs
+++ b/crates/stdx/src/lib.rs
@@ -87,6 +87,8 @@ where
87 Ok(()) 87 Ok(())
88 } 88 }
89} 89}
90
91#[must_use]
90pub fn timeit(label: &'static str) -> impl Drop { 92pub fn timeit(label: &'static str) -> impl Drop {
91 struct Guard { 93 struct Guard {
92 label: &'static str, 94 label: &'static str,