Refactor main to match format used
Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
This commit is contained in:
parent
c5d08570e8
commit
c653c05a06
1 changed files with 7 additions and 6 deletions
|
@ -24,6 +24,13 @@ public class Main {
|
||||||
int d1_p2_answer = day01.Part2();
|
int d1_p2_answer = day01.Part2();
|
||||||
long day01_p2 = System.currentTimeMillis() - start;
|
long day01_p2 = 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);
|
||||||
|
System.out.printf("Part 2 sample answer is: %d (%dms)\n", sample_d1_p2_answer, day01_p2_sample);
|
||||||
|
System.out.printf("Part 2 answer is: %d (%dms)\n", d1_p2_answer, day01_p2);
|
||||||
|
|
||||||
|
System.out.println("\nDay 3:");
|
||||||
start = System.currentTimeMillis();
|
start = System.currentTimeMillis();
|
||||||
Day03 day03 = new Day03();
|
Day03 day03 = new Day03();
|
||||||
long day03_init = System.currentTimeMillis() - start;
|
long day03_init = System.currentTimeMillis() - start;
|
||||||
|
@ -36,12 +43,6 @@ public class Main {
|
||||||
int day03_p1 = day03.part1();
|
int day03_p1 = day03.part1();
|
||||||
long day03_p1_t = System.currentTimeMillis() - start;
|
long day03_p1_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);
|
|
||||||
System.out.printf("Part 2 sample answer is: %d (%dms)\n", sample_d1_p2_answer, day01_p2_sample);
|
|
||||||
System.out.printf("Part 2 answer is: %d (%dms)\n", d1_p2_answer, day01_p2);
|
|
||||||
|
|
||||||
System.out.printf("Day 3 init took %dms\n", day03_init);
|
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 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);
|
System.out.printf("Day 3 part 2 : %d (%dms)", day03_p1, day03_p1_t);
|
||||||
|
|
Loading…
Reference in a new issue