1
Fork 0

Add a runtime counter.

This commit is contained in:
Bauke 2021-12-04 14:38:34 +01:00
parent 8f62929a85
commit 29e1032ce6
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 7 additions and 0 deletions

View File

@ -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(())
} }