mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-30 00:38:56 +00:00
Real => wall clock
This commit is contained in:
1 parent
af4422d212
commit
c20fcc0bda
7 files changed
+122
-97
No files matched your search
+3
-3
@@ -27,7 +27,7 @@ use anyhow::Result;
|
||||
/// Used to indicate the result of running a command
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct TimerResult {
|
||||
pub time_real: Second,
|
||||
pub time_wall_clock: Second,
|
||||
pub time_user: Second,
|
||||
pub time_system: Second,
|
||||
pub memory_usage_byte: u64,
|
||||
@@ -94,9 +94,9 @@ pub fn execute_and_measure(mut command: Command) -> Result<Measurement> {
|
||||
}
|
||||
|
||||
let (status, time_user, time_system, memory_usage_byte) = cpu_timer.stop(child)?;
|
||||
let time_real = wallclock_timer.stop();
|
||||
let time_wall_clock = wallclock_timer.stop();
|
||||
|
||||
Ok(Measurement {
|
||||
Ok(TimerResult {
|
||||
time_wall_clock,
|
||||
time_user,
|
||||
time_system,
|
||||
|
||||
Reference in new issue
Block a user