From 02a2c301586f4d360e594d967d11c108a6f62434 Mon Sep 17 00:00:00 2001 From: Steve Pentland Date: Sun, 4 Feb 2018 20:54:38 -0500 Subject: [PATCH] Move windows timing measurement inside calling fn --- src/hyperfine/benchmark.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperfine/benchmark.rs b/src/hyperfine/benchmark.rs index d2fe47f..3a195ad 100644 --- a/src/hyperfine/benchmark.rs +++ b/src/hyperfine/benchmark.rs @@ -11,7 +11,6 @@ use hyperfine::format::{format_duration, format_duration_unit}; use hyperfine::outlier_detection::{modified_zscores, OUTLIER_THRESHOLD}; use hyperfine::timer::Timer; use hyperfine::timer::wallclocktimer::WallClockTimer; -use hyperfine::timer::cputimer::get_process_times; use hyperfine::shell::run_shell_command; @@ -297,6 +296,7 @@ pub fn run_benchmark( #[cfg(windows)] fn execute_and_time(command: &str) -> io::Result<(f64, f64, ExitStatus)> { + use hyperfine::timer::cputimer::get_process_times; use std::os::windows::io::AsRawHandle; let mut child = run_shell_command(command)?;