Gnash
0.8.10
|
A system-clock based virtual clock. More...
#include <SystemClock.h>
Public Member Functions | |
SystemClock () | |
Construct the clock, starting it. | |
unsigned long int | elapsed () const |
Return number of milliseconds elapsed since start. | |
void | restart () |
Restart the clock. |
A system-clock based virtual clock.
This class uses the system clock for computing elapsed time. See http://en.wikipedia.org/wiki/System_time for capacity
gnash::SystemClock::SystemClock | ( | ) |
Construct the clock, starting it.
unsigned long int gnash::SystemClock::elapsed | ( | ) | const [virtual] |
Return number of milliseconds elapsed since start.
Subclass this to provide time to the core lib. NOTE: 32bit unsigned int has an upper limit of 4294967295 which means about 49 days before overlflow.
Implements gnash::VirtualClock.
Referenced by gnash::ActionExec::operator()(), gnash::movie_root::advance(), and gnash::NullGui::run().
void gnash::SystemClock::restart | ( | ) | [virtual] |