fix server startup time measurement

This commit is contained in:
Sen 2025-05-18 18:47:20 +02:00
parent 5066ddf9af
commit 9a6c41661b

View file

@ -150,8 +150,10 @@ public final class Server implements IThreadListener {
private int perfTimer;
public static void main(String[] args) {
long time = System.currentTimeMillis();
Util.checkOs();
Registry.setup("Server thread");
Log.JNI.info("Starte " + Config.NAME + " Server Version " + Config.VERSION);
GenBiome.setAsProvider();
UniverseRegistry.register();
RotationRegistry.register();
@ -164,7 +166,7 @@ public final class Server implements IThreadListener {
server.stopServer();
}
});
server.run(port);
server.run(time, port);
Region.killIO();
Log.flushLog();
}
@ -432,9 +434,7 @@ public final class Server implements IThreadListener {
return true;
}
public void run(int port) {
long time = System.currentTimeMillis();
Log.JNI.info("Starte " + Config.NAME + " Server Version " + Config.VERSION);
public void run(long time, int port) {
if(!this.debug) {
Converter.convert();
long wtime = loadServerConfig();