summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
authorErik Broes <erikbroes@ripe.net>2011-02-25 21:57:38 +0100
committerErik Broes <erikbroes@ripe.net>2011-02-25 22:44:25 +0100
commit78af4f97f9a7125fcc914f52f83c93023359b281 (patch)
tree8a62621adb8ca618553cc394952c278755761615 /src/main/java/net/minecraft
parent61339bcb2a1a0e5ed7b8ed58bbf0019db826243d (diff)
downloadcraftbukkit-78af4f97f9a7125fcc914f52f83c93023359b281.tar
craftbukkit-78af4f97f9a7125fcc914f52f83c93023359b281.tar.gz
craftbukkit-78af4f97f9a7125fcc914f52f83c93023359b281.tar.lz
craftbukkit-78af4f97f9a7125fcc914f52f83c93023359b281.tar.xz
craftbukkit-78af4f97f9a7125fcc914f52f83c93023359b281.zip
Startup time now reported in seconds, nanoseconds, Really? O.o
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r--src/main/java/net/minecraft/server/MinecraftServer.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index 07cd1d29..b9e6ff0b 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -129,7 +129,13 @@ public class MinecraftServer implements Runnable, ICommandListener {
a.info("Preparing level \"" + 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;
}