We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7c305 commit 2f246c0Copy full SHA for 2f246c0
src/helpers.rs
@@ -50,7 +50,7 @@ pub fn solve_day(day: u8) {
50
// 23 => solve!(day23),
51
// 24 => solve!(day24),
52
// 25 => solve!(day25),
53
- _ => println!("Day {day:02}\n not implemented!\n"),
+ _ => (),
54
}
55
56
src/main.rs
@@ -1,9 +1,11 @@
1
-use std::env;
+use std::{env, time::SystemTime};
2
3
mod helpers;
4
mod solutions;
5
6
fn main() {
7
+ let time = SystemTime::now();
8
+
9
// reading command line arguments
10
let args: Vec<String> = env::args().collect();
11
@@ -21,4 +23,9 @@ fn main() {
21
23
helpers::solve_day(day);
22
24
})
25
26
27
+ println!(
28
+ "total elapsed time: {} ms",
29
+ time.elapsed().unwrap().as_millis()
30
+ );
31
0 commit comments