Skip to content
Myr

Rename to TimerResult

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

authored by David Peter · committed by David Peter · parent 55f0ef6 · 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/timer/mod.rs+3 added-3 removed
22 unmodified lines
23}2425/// Used to indicate the result of running a command26#[derive(Debug, Copy, Clone)]27pub struct ExecuteResult {27pub struct TimerResult {28 pub time_real: Second,29 pub time_user: Second,30 pub time_system: Second,31
1 unmodified line
33 pub status: ExitStatus,34}3536/// Execute the given command and return a timing summary37pub fn execute_and_measure(mut command: Command) -> Result<ExecuteResult> {37pub fn execute_and_measure(mut command: Command) -> Result<TimerResult> {38 let wallclock_timer = WallClockTimer::start();3940 #[cfg(not(windows))]41 let ((time_user, time_system), status) = {
12 unmodified lines
54 };5556 let time_real = wallclock_timer.stop();5758 Ok(ExecuteResult {58 Ok(TimerResult {59 time_real,60 time_user,61 time_system,62 status,
2 unmodified lines