Gnash
0.8.10
|
A manually advanced clock. More...
#include <ManualClock.h>
Public Member Functions | |
ManualClock () | |
Construct a manual clock. | |
unsigned long | elapsed () const |
Return number of milliseconds elapsed since start. | |
void | restart () |
Restart the clock. | |
void | advance (unsigned long amount) |
Advance the clock by the given amount of milliseconds. |
A manually advanced clock.
gnash::ManualClock::ManualClock | ( | ) | [inline] |
Construct a manual clock.
void gnash::ManualClock::advance | ( | unsigned long | amount | ) | [inline] |
Advance the clock by the given amount of milliseconds.
Referenced by gnash::DumpGui::run().
unsigned long gnash::ManualClock::elapsed | ( | ) | const [inline, 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::DumpGui::run(), gnash::DumpGui::writeFrame(), and gnash::DumpGui::writeSamples().
void gnash::ManualClock::restart | ( | ) | [inline, virtual] |
Restart the clock.
Implements gnash::VirtualClock.