Actually print time it took

This commit is contained in:
md_5 2013-03-19 17:23:07 +11:00
parent 2bae6cafc2
commit 730c05aaad

View File

@ -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;