}
});
long startTime = System.nanoTime();
for (int i = 1; i <= countOfEvents; i++)
{
Event event = Events.event(null, Events.SESSION_MESSAGE);
dispatcher.fireEvent(event);
}
long time = System.nanoTime() - startTime;
latch.await(10, TimeUnit.SECONDS);
System.out.printf("Took %.3f seconds to send %d int events",