Skip to content

Commit 37b4599

Browse files
committed
Add timing logs to the attractor tool
1 parent 2a2bfbc commit 37b4599

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/attractor.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ fn main() -> eyre::Result<()> {
254254
args.height,
255255
)?;
256256

257+
let start = std::time::Instant::now();
257258
for (i, (mut x, mut y)) in initial_values.into_iter().enumerate() {
258259
tracing::trace!("i={i}: Starting at: ({x}, {y})");
259260
for j in 0..args.iterations {
@@ -269,6 +270,8 @@ fn main() -> eyre::Result<()> {
269270
}
270271
}
271272
formatter.flush()?;
273+
let elapsed = start.elapsed();
274+
tracing::info!("Finished in {elapsed:?}");
272275

273276
Ok(())
274277
}

0 commit comments

Comments
 (0)