mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 09:23:00 +00:00
Rename to TimerResult
This commit is contained in:
1 parent
62bfc428a7
commit
5f4cddf138
1 file changed
+3
-3
+3
-3
@@ -24,7 +24,7 @@ struct CPUTimes {
|
|||||||
|
|
||||||
/// Used to indicate the result of running a command
|
/// Used to indicate the result of running a command
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(Debug, Copy, Clone)]
|
||||||
pub struct ExecuteResult {
|
pub struct TimerResult {
|
||||||
pub time_real: Second,
|
pub time_real: Second,
|
||||||
pub time_user: Second,
|
pub time_user: Second,
|
||||||
pub time_system: Second,
|
pub time_system: Second,
|
||||||
@@ -34,7 +34,7 @@ pub struct ExecuteResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Execute the given command and return a timing summary
|
/// Execute the given command and return a timing summary
|
||||||
pub fn execute_and_measure(mut command: Command) -> Result<ExecuteResult> {
|
pub fn execute_and_measure(mut command: Command) -> Result<TimerResult> {
|
||||||
let wallclock_timer = WallClockTimer::start();
|
let wallclock_timer = WallClockTimer::start();
|
||||||
|
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
@@ -55,7 +55,7 @@ pub fn execute_and_measure(mut command: Command) -> Result<ExecuteResult> {
|
|||||||
|
|
||||||
let time_real = wallclock_timer.stop();
|
let time_real = wallclock_timer.stop();
|
||||||
|
|
||||||
Ok(ExecuteResult {
|
Ok(TimerResult {
|
||||||
time_real,
|
time_real,
|
||||||
time_user,
|
time_user,
|
||||||
time_system,
|
time_system,
|
||||||
|
|||||||
Reference in new issue
Block a user