Add min, max to output. They were missed

This commit is contained in:
Steve Pentland authored and David Peter committed 2018-03-19 07:53:10 +01:00
1 parent 7c7277777a
commit ce79d81bd2
2 files changed
+17 -1

No files matched your search

+2
View File
@@ -300,5 +300,7 @@ pub fn run_benchmark(
t_stddev, t_stddev,
user_mean, user_mean,
system_mean, system_mean,
t_min,
t_max,
)) ))
} }
+15 -1
View File
@@ -20,17 +20,31 @@ pub struct ExportEntry {
user: Second, user: Second,
/// Time spent in system space /// Time spent in system space
system: Second, system: Second,
/// Min time measured
min: Second,
/// Max time measured
max: Second,
} }
impl ExportEntry { impl ExportEntry {
/// Create a new ExportEntry with the given values /// Create a new ExportEntry with the given values
pub fn new(command: String, mean: f64, stddev: f64, user: f64, system: f64) -> Self { pub fn new(
command: String,
mean: Second,
stddev: Second,
user: Second,
system: Second,
min: Second,
max: Second,
) -> Self {
ExportEntry { ExportEntry {
command, command,
mean, mean,
stddev, stddev,
user, user,
system, system,
min,
max,
} }
} }
} }