From 730c05aaad05f94211200b38f8e84868c13e226b Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 19 Mar 2013 17:23:07 +1100 Subject: [PATCH] Actually print time it took --- .../main/java/net/md_5/bungee/api/plugin/PluginManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java index 7eeb68e8..1ca8ef96 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java @@ -235,7 +235,10 @@ public class PluginManager long elapsed = start - System.nanoTime(); if ( elapsed > 250000 ) { - ProxyServer.getInstance().getLogger().log( Level.WARNING, "Event {0} took more than 0.25ms to process!", event ); + ProxyServer.getInstance().getLogger().log( Level.WARNING, "Event {0} took more {1}ns to process!", new Object[] + { + event, elapsed + } ); } } return event;