Skip to content
Myr

Move windows timing measurement inside calling fn

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Steve Pentland · committed by sharkdp · parent 5ca5a00 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/hyperfine/benchmark.rs+1 added-1 removed
9 unmodified lines
10use hyperfine::format::{format_duration, format_duration_unit};11use hyperfine::outlier_detection::{modified_zscores, OUTLIER_THRESHOLD};12use hyperfine::timer::Timer;13use hyperfine::timer::wallclocktimer::WallClockTimer;14use hyperfine::timer::cputimer::get_process_times;14use hyperfine::shell::run_shell_command;151617/// Results from timing a single shell command
277 unmodified lines
295}296297#[cfg(windows)]298fn execute_and_time(command: &str) -> io::Result<(f64, f64, ExitStatus)> {299 use hyperfine::timer::cputimer::get_process_times;300 use std::os::windows::io::AsRawHandle;301302 let mut child = run_shell_command(command)?;303
24 unmodified lines