DTimer periodically calls an event handler at a set interval. See the Event Handling section for details. The timer's resolution depends on how often DEngine::update is called, up to a maximum accuracy of 1 millisecond.
The default constructor accepts a DEngine that will handle our events.
Creates a DTimer that is a copy of source.
Sets this DTimer to be a copy of source.
Returns the interval at which the event handler will be called, in milliseconds.
Returns true if this timer is currently running, false otherwise.
Sets the interval at which the event handler will be called, in milliseconds.
Specify a handler to call when the timer elapses.
Start the timer. The event handler will be called at the specified interval. If the timer is currently running, it resets the timer so that interval milliseconds will pass before the handler is called.
Stop the timer.