From 6c8ee04e9599980edb1f3c4442ff6003966db3ca Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 24 Jan 2024 23:39:14 +0100 Subject: [PATCH] runtime measurement --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index ba85fa3..c13f004 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,14 @@ +use std::time::Instant; + mod common; mod day09; fn main() { println!("Executing main entrypoint . . . "); + let now = Instant::now(); + day09::part_one(); + + let elapsed = now.elapsed(); + println!("Execution in {:?}.", elapsed); }