Skip to content

Instantly share code, notes, and snippets.

@JMD13
Created July 21, 2015 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JMD13/b0bfe89fdc8aa9b9a6ca to your computer and use it in GitHub Desktop.
Save JMD13/b0bfe89fdc8aa9b9a6ca to your computer and use it in GitHub Desktop.
Time taken to load the gameserver for l2jlisvus.
Index: java/net/sf/l2j/gameserver/GameServer.java
===================================================================
--- java/net/sf/l2j/gameserver/GameServer.java (revision 4)
+++ java/net/sf/l2j/gameserver/GameServer.java (working copy)
@@ -131,6 +131,7 @@
public GameServer() throws Exception
{
+ long serverLoadStart = System.currentTimeMillis();
gameServer = this;
_log.finest("used mem:" + getUsedMemoryMB()+"MB" );
@@ -551,6 +552,7 @@
_selectorThread.start();
_log.config("Maximum Number of Connected Players: " + Config.MAXIMUM_ONLINE_USERS);
+ _log.log(Level.INFO, getClass().getSimpleName() + ": Server loaded in " + ((System.currentTimeMillis() - serverLoadStart) / 1000) + " seconds.");
}
public static void main(String[] args) throws Exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment