about summary refs log tree commit diff
path: root/library/std/benches/time.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/benches/time.rs')
-rw-r--r--library/std/benches/time.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/benches/time.rs b/library/std/benches/time.rs
index 552481cad92..dfd886738f9 100644
--- a/library/std/benches/time.rs
+++ b/library/std/benches/time.rs
@@ -1,5 +1,3 @@
-use std::time::Instant;
-
 #[cfg(not(target_arch = "wasm32"))]
 use test::{Bencher, black_box};
 
@@ -10,6 +8,7 @@ macro_rules! bench_instant_threaded {
         fn $bench_name(b: &mut Bencher) -> std::thread::Result<()> {
             use std::sync::Arc;
             use std::sync::atomic::{AtomicBool, Ordering};
+            use std::time::Instant;
 
             let running = Arc::new(AtomicBool::new(true));