maven works

main
2wenty1ne 2024-10-22 03:03:15 +02:00
parent 088ac0a7be
commit 89fb8323f4
1 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@ public class Factory {
}
public static void main(String... args) throws InterruptedException {
var now = System.currentTimeMillis();
var now = System.currentTimeMillis(); //? Timer
var threads = new Thread[100];
for (var i = 0; i < 100; i++) {
threads[i] = new Thread(() -> {
@ -26,7 +26,8 @@ public class Factory {
for (var i = 0; i < 100; i++) {
threads[i].join();
}
var time = System.currentTimeMillis() - now;
System.out.println("Dauer: " + time + "ms");
var time = System.currentTimeMillis() - now; //? Timer
System.out.println("Dauer: " + time + "ms"); //? Timer
}
}