#include <EventClock.h>
Public Types | |
typedef unsigned long long | tTime |
The datatype for time. | |
Public Member Functions | |
EventClock () | |
Constructor. | |
void | Update () |
Sets the time to now. | |
unsigned long long | GetTime () |
Returns the clock in milliseconds. | |
void | Report (const std::string &name, std::ostream &out, int ccindent=0) const |
Writes a report of this object to the given stream. This is mainly useful for debugging. |
An object of this class is used to model the time reference for the application.
The time reference is updated by the MainLoop when new events (EventInterface timeout or active IOInterface filehandles) need to be dispatched. That means that all events dispatched in that round perceive the same time (returned by the GetTime() method).