I noticed that the function t.runNextEvent() has a big impact in the time of the simulation. To be sure all events are simulated I call it a lot of times. In some cases(especially when I use flooding to disseminate information) it is not enough.
Hence if this number is too large I have to wait more to obtain the results. If instead the number of calls is too small the simulation becomes useless.
There is any way to know the right number of calls? Here we have to consider the highly randomness and the fact that flooding may be used.