fix server startup time measurement
This commit is contained in:
parent
5066ddf9af
commit
9a6c41661b
1 changed files with 4 additions and 4 deletions
|
@ -150,8 +150,10 @@ public final class Server implements IThreadListener {
|
||||||
private int perfTimer;
|
private int perfTimer;
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
long time = System.currentTimeMillis();
|
||||||
Util.checkOs();
|
Util.checkOs();
|
||||||
Registry.setup("Server thread");
|
Registry.setup("Server thread");
|
||||||
|
Log.JNI.info("Starte " + Config.NAME + " Server Version " + Config.VERSION);
|
||||||
GenBiome.setAsProvider();
|
GenBiome.setAsProvider();
|
||||||
UniverseRegistry.register();
|
UniverseRegistry.register();
|
||||||
RotationRegistry.register();
|
RotationRegistry.register();
|
||||||
|
@ -164,7 +166,7 @@ public final class Server implements IThreadListener {
|
||||||
server.stopServer();
|
server.stopServer();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
server.run(port);
|
server.run(time, port);
|
||||||
Region.killIO();
|
Region.killIO();
|
||||||
Log.flushLog();
|
Log.flushLog();
|
||||||
}
|
}
|
||||||
|
@ -432,9 +434,7 @@ public final class Server implements IThreadListener {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void run(int port) {
|
public void run(long time, int port) {
|
||||||
long time = System.currentTimeMillis();
|
|
||||||
Log.JNI.info("Starte " + Config.NAME + " Server Version " + Config.VERSION);
|
|
||||||
if(!this.debug) {
|
if(!this.debug) {
|
||||||
Converter.convert();
|
Converter.convert();
|
||||||
long wtime = loadServerConfig();
|
long wtime = loadServerConfig();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue