Startup time now reported in seconds, nanoseconds, Really? O.o

This commit is contained in:
Erik Broes 2011-02-25 21:57:38 +01:00
parent 61339bcb2a
commit 78af4f97f9

View file

@ -129,7 +129,13 @@ public class MinecraftServer implements Runnable, ICommandListener {
a.info("Preparing level \"" + s1 + "\""); a.info("Preparing level \"" + s1 + "\"");
this.a((Convertable) (new WorldLoaderServer(new File("."))), s1); this.a((Convertable) (new WorldLoaderServer(new File("."))), s1);
a.info("Done (" + (System.nanoTime() - j) + "ns)! For help, type \"help\" or \"?\"");
// CraftBukkit start
long elapsed = System.nanoTime() - j;
String time = String.format( "%.3fs", elapsed / 10000000000.0D );
a.info("Done (" + time + ")! For help, type \"help\" or \"?\"");
// CraftBukkit end
return true; return true;
} }