Actually print time it took
This commit is contained in:
parent
2bae6cafc2
commit
730c05aaad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user