From eb2e8100c75fb5c204e2b3d428ff5f4fe682ba57 Mon Sep 17 00:00:00 2001 From: Eoghan Conlon Date: Mon, 9 Dec 2024 15:01:14 +0000 Subject: [PATCH] Fix. Adding Day02 stuff into main Signed-off-by: Eoghan Conlon --- src/Main.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Main.java b/src/Main.java index 5597d71..1d8c4fb 100644 --- a/src/Main.java +++ b/src/Main.java @@ -24,14 +24,6 @@ public class Main { int d1_p2_answer = day01.Part2(); long day01_p2 = System.currentTimeMillis() - start; - start = System.currentTimeMillis(); - Day03 day03 = new Day03(); - long day03_init = System.currentTimeMillis() - start; - - start = System.currentTimeMillis(); - int day03_p1_sample = day03.part1_sample(); - long day03_p1_sample_t = System.currentTimeMillis() - start; - System.out.printf("Day 1 init took %dms", day01_init); System.out.printf("Part 1 sample is: %d (%dms)\n", sample_d1_p1_answer, day01_p1_sample); System.out.printf("Part 1 answer is: %d (%dms)\n", d1_p1_answer, day01_p1); @@ -65,6 +57,15 @@ public class Main { System.out.printf("Part 2 sample = %d (%dms)\n", d2_p2_sample, day02_p2_sample); System.out.printf("Part 2 answer = %d (%dms)\n", d2_p2, day02_p2); + System.out.println("\nDay 3:"); + start = System.currentTimeMillis(); + Day03 day03 = new Day03(); + long day03_init = System.currentTimeMillis() - start; + + start = System.currentTimeMillis(); + int day03_p1_sample = day03.part1_sample(); + long day03_p1_sample_t = System.currentTimeMillis() - start; + start = System.currentTimeMillis(); int day03_p1 = day03.part1(); long day03_p1_t = System.currentTimeMillis() - start;