src/simulator/simulator.h
changeset 84 63b3ed9ce4e4
parent 76 65d10fd77589
child 100 05fa5c7ddf2a
equal deleted inserted replaced
83:430203344318 84:63b3ed9ce4e4
    40  * as a 64-bit integer in microsecond units. This means that it is
    40  * as a 64-bit integer in microsecond units. This means that it is
    41  * not possible to specify event expiration times with anything better
    41  * not possible to specify event expiration times with anything better
    42  * than microsecond accuracy. Events whose expiration time is
    42  * than microsecond accuracy. Events whose expiration time is
    43  * the same are scheduled in FIFO order: the first event inserted in the
    43  * the same are scheduled in FIFO order: the first event inserted in the
    44  * Scheduling queue is scheduled to expire first.
    44  * Scheduling queue is scheduled to expire first.
       
    45  * 
       
    46  * A simple example of how to use the Simulator class to schedule events
       
    47  * is shown below:
       
    48  * \include samples/main-simulator.cc
    45  */
    49  */
    46 class Simulator {
    50 class Simulator {
    47 public:
    51 public:
    48     /**
    52     /**
    49      * Force the use of an event scheduler based on a linked-list.
    53      * Force the use of an event scheduler based on a linked-list.