From 78af4f97f9a7125fcc914f52f83c93023359b281 Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Fri, 25 Feb 2011 21:57:38 +0100 Subject: [PATCH] Startup time now reported in seconds, nanoseconds, Really? O.o --- src/main/java/net/minecraft/server/MinecraftServer.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 07cd1d292f..b9e6ff0b0e 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; }