From 7fd4aea49595953f232b4b40abe86e038d8f3e60 Mon Sep 17 00:00:00 2001 From: David Peter Date: Tue, 22 Feb 2022 12:56:56 +0100 Subject: [PATCH] Rename to TimerResult --- src/timer/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,