Add timing of complete program

This commit is contained in:
hal8174 2024-11-16 16:34:13 +01:00
parent 67fcde4309
commit 5a3525a9ce
5 changed files with 70 additions and 68 deletions

View file

@ -163,6 +163,7 @@ struct Args {
}
fn main() {
let total_start = std::time::Instant::now();
let args = Args::parse();
let graph = parse(args.filename);
@ -207,4 +208,5 @@ fn main() {
println!("{}", n + 1);
}
}
eprintln!("Total time: {:?}", total_start.elapsed());
}