Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d6ed9ef

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /