Move windows timing measurement inside calling fn

This commit is contained in:
Steve Pentland authored and sharkdp committed 2018-02-13 21:02:32 +01:00
1 parent 5ca5a00bf6
commit 02a2c30158
1 file changed
+1 -1
+1 -1
View File
@@ -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)?;