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