diff --git a/src/timer/mod.rs b/src/timer/mod.rs index 7e6ccbf..41e3587 100644 --- a/src/timer/mod.rs +++ b/src/timer/mod.rs @@ -24,7 +24,7 @@ struct CPUTimes { /// Used to indicate the result of running a command #[derive(Debug, Copy, Clone)] -pub struct ExecuteResult { +pub struct TimerResult { pub time_real: Second, pub time_user: Second, pub time_system: Second, @@ -34,7 +34,7 @@ pub struct ExecuteResult { } /// Execute the given command and return a timing summary -pub fn execute_and_measure(mut command: Command) -> Result { +pub fn execute_and_measure(mut command: Command) -> Result { let wallclock_timer = WallClockTimer::start(); #[cfg(not(windows))] @@ -55,7 +55,7 @@ pub fn execute_and_measure(mut command: Command) -> Result { let time_real = wallclock_timer.stop(); - Ok(ExecuteResult { + Ok(TimerResult { time_real, time_user, time_system,