8000 print out start and end times · fishercoder1534/RandomJava@3461c73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3461c73

Browse files
print out start and end times
1 parent a768af2 commit 3461c73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/multithread/completablefutureexamples/CompletableFutureDemo2.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public static void main(String... args) throws ExecutionException, InterruptedEx
3030
finalResult += Integer.parseInt(result);
3131
}
3232
long end = System.currentTimeMillis();
33+
System.out.println("end: " + end);
34+
System.out.println("start: " + start);
3335
System.out.println("It took " + (end - start) / 1000
3436
+ " seconds to complete computation, final result: " + finalResult
3537
+ ", a total of " + NUMBER_OF_COMPUTATION_JOBS + " computation jobs "

0 commit comments

Comments
 (0)
0