MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / timed_atomic

Function timed_atomic

atomic-cli/tests/it/import_budget_100k_bench.rs:88–92  ·  view source on GitHub ↗

Run atomic with a wall-clock measurement; returns (seconds, output).

(root: &Path, home: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

86
87/// Run atomic with a wall-clock measurement; returns (seconds, output).
88fn 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
94fn git(root: &Path, args: &[&str]) -> Output {
95 let mut command = Command::new("git");

Calls 1

atomicFunction · 0.70

Tested by

no test coverage detected