mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-28 05:05:21 +01:00
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();
|
long elapsed = start - System.nanoTime();
|
||||||
if ( elapsed > 250000 )
|
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;
|
return event;
|
||||||
|
Loading…
Reference in New Issue
Block a user