[BUG] Fix profiler time
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user