#include <ev.h>
Public Member Functions | |
EvSim (void) | |
virtual | ~EvSim (void) |
timeunits | CurrentTime (void) const |
void | Run (timeunits from=0, timeunits to=MAXTIME) |
void | Schedule (Event *e, bool fifo=true) |
void | dumpStats (void) |
|
Constructor. Creates an event simulator object |
|
Destroys the object and dumps some simulator statistics. |
|
Get current simulated time
|
|
Dumps simulation-related statistics. These include number of events, time of the last event, event rate... This function is automatically called by the destructor, so you do not need to call it directly. |
|
Start the simulator scheduler and start processing events from initial time t final time.
|
|
Enqueue an event to occur in the future. If more than one event has to occur at the same time, enqueue it either in FIFO order or in LIFO order.
|