Rounded extensions loading time for readability purpose

This commit is contained in:
themode 2020-11-04 18:27:18 +01:00
parent 8612245ff9
commit ae1d089603

View File

@ -607,7 +607,8 @@ public class MinecraftServer {
extensionManager.getExtensions().forEach(Extension::initialize);
extensionManager.getExtensions().forEach(Extension::postInitialize);
LOGGER.info("Extensions loaded in " + (t1 + System.nanoTime()) / 1_000_000D + "ms");
final double loadTime = MathUtils.round((t1 + System.nanoTime()) / 1_000_000D, 2);
LOGGER.info("Extensions loaded in " + loadTime + "ms");
LOGGER.info("Minestom server started successfully.");
MinecraftServer.started = true;