Added timings command.

This commit is contained in:
Tahg
2012-01-09 01:09:10 -05:00
parent c80b2d2fd9
commit 3d4c2010eb
5 changed files with 98 additions and 1 deletions

View File

@@ -336,7 +336,9 @@ public final class SimplePluginManager implements PluginManager {
if (eventListeners != null) {
for (RegisteredListener registration : eventListeners) {
try {
long start = System.nanoTime();
registration.callEvent(event);
registration.getPlugin().incTiming(event.getType(), System.nanoTime() - start);
} catch (AuthorNagException ex) {
Plugin plugin = registration.getPlugin();