[BUG] Fix profiler time

This commit is contained in:
2023-10-23 21:09:20 +02:00
parent be91aae042
commit 9c89bc151b
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
version_major=0 version_major=0
version_minor=0 version_minor=0
version_patch=27 version_patch=28
shade_group=com.hypherionmc.sdlink.shaded. shade_group=com.hypherionmc.sdlink.shaded.

View File

@@ -40,7 +40,9 @@ public class Profiler {
} }
long stopTime = System.nanoTime(); long stopTime = System.nanoTime();
BotController.INSTANCE.getLogger().info("[Profiler (" + this.profilerName + ")] " + message + " took " + TimeUnit.SECONDS.toSeconds(stopTime - startTime) + " seconds"); double seconds = (double) (stopTime - startTime) / 1_000_000_000;
BotController.INSTANCE.getLogger().info("[Profiler (" + this.profilerName + ")] " + message + " took " + seconds + " seconds");
hasStarted = false; hasStarted = false;
} }