diff --git a/src/main/java/pp/Factory.java b/src/main/java/pp/Factory.java index 7539bfb..cfa0894 100644 --- a/src/main/java/pp/Factory.java +++ b/src/main/java/pp/Factory.java @@ -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 } } \ No newline at end of file