Skip to content

Commit d6ed9ef

Browse files
committed
output time taken to solve
1 parent 366736c commit d6ed9ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/codefork/aoc2024/Problem.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ public Stream<String> getSampleInput() {
7070
* run the solution
7171
*/
7272
public void run() {
73+
var start = System.currentTimeMillis();
7374
System.out.println(solve());
75+
System.out.printf("Took %dms%n", System.currentTimeMillis() - start);
7476
}
7577

7678
}

0 commit comments

Comments
 (0)