Add a runtime counter.
This commit is contained in:
parent
8f62929a85
commit
29e1032ce6
|
@ -1,3 +1,5 @@
|
||||||
|
use std::time::Instant;
|
||||||
|
|
||||||
mod day_01;
|
mod day_01;
|
||||||
mod day_02;
|
mod day_02;
|
||||||
mod day_03;
|
mod day_03;
|
||||||
|
@ -7,10 +9,15 @@ fn main() -> color_eyre::Result<()> {
|
||||||
color_eyre::install()?;
|
color_eyre::install()?;
|
||||||
|
|
||||||
println!("Advent of Code 2021");
|
println!("Advent of Code 2021");
|
||||||
|
let start = Instant::now();
|
||||||
|
|
||||||
day_01::solve()?;
|
day_01::solve()?;
|
||||||
day_02::solve()?;
|
day_02::solve()?;
|
||||||
day_03::solve()?;
|
day_03::solve()?;
|
||||||
day_04::solve()?;
|
day_04::solve()?;
|
||||||
|
|
||||||
|
let end = Instant::now();
|
||||||
|
println!("Runtime: {:#?}", end - start);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue