Skip to content
Myr

Code style updates

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

authored by sharkdp · committed by sharkdp · parent 4829dfb · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:src/hyperfine/benchmark.rs+3 added-3 removed
10 unmodified lines
11use hyperfine::timer::{TimerStart, TimerStop};12use hyperfine::timer::wallclocktimer::WallClockTimer;13use hyperfine::shell::execute_and_time;141515/// Results from timing a single shell command16#[derive(Debug, Default, Copy, Clone)]17pub struct TimingResult {18 /// Wall clock time
160 unmodified lines
179 let (res, success) =180 time_shell_command(cmd, options.failure_action, Some(shell_spawning_time))?;181182 // Determine number of benchmark runs184 let runs_in_min_time =185 (options.min_time_sec / (res.time_real + prepare_res.time_real + shell_spawning_time.time_real)) as u64;183 let runs_in_min_time = (options.min_time_sec184 / (res.time_real + prepare_res.time_real + shell_spawning_time.time_real))185 as u64;186187 let count = if runs_in_min_time >= options.min_runs {188 runs_in_min_time189 } else {
108 unmodified lines