From 3e1ded4380f63ad609c38fb2aebe3913600b032f Mon Sep 17 00:00:00 2001 From: Eoghan Conlon Date: Mon, 9 Dec 2024 13:03:33 +0000 Subject: [PATCH] Refactor main to match format used Signed-off-by: Eoghan Conlon --- src/Main.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Main.java b/src/Main.java index 7da23f3..23592ec 100644 --- a/src/Main.java +++ b/src/Main.java @@ -64,5 +64,13 @@ public class Main { System.out.printf("Part 1 answer = %d (%dms)\n", d2_p1, day02_p1); 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); + + start = System.currentTimeMillis(); + int day03_p1 = day03.part1(); + long day03_p1_t = System.currentTimeMillis() - start; + + System.out.printf("Day 3 init took %dms\n", day03_init); + System.out.printf("Day 3 part 1 (sample): %d (%dms)\n", day03_p1_sample, day03_p1_sample_t); + System.out.printf("Day 3 part 2 : %d (%dms)", day03_p1, day03_p1_t); } }