From 89fb8323f4752f19f7b008f423692ed29986ed66 Mon Sep 17 00:00:00 2001 From: 2wenty1ne Date: Tue, 22 Oct 2024 03:03:15 +0200 Subject: [PATCH] maven works --- src/main/java/pp/Factory.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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