Run atomic with a wall-clock measurement; returns (seconds, output).
(root: &Path, home: &Path, args: &[&str])
| 86 | |
| 87 | /// Run atomic with a wall-clock measurement; returns (seconds, output). |
| 88 | fn timed_atomic(root: &Path, home: &Path, args: &[&str]) -> (f64, Output) { |
| 89 | let started = Instant::now(); |
| 90 | let output = atomic(root, home, args); |
| 91 | (started.elapsed().as_secs_f64(), output) |
| 92 | } |
| 93 | |
| 94 | fn git(root: &Path, args: &[&str]) -> Output { |
| 95 | let mut command = Command::new("git"); |
no test coverage detected