Gnash
0.8.11dev
|
A VirtualClock wrapper adding pause/resume capabilities. More...
#include <VirtualClock.h>
Public Member Functions | |
InterruptableVirtualClock (VirtualClock &src) | |
Construct an InterruptableVirtualClock from a VirtualClock source. | |
unsigned long int | elapsed () const |
Return elapsed time, taking interruptions in consideration. | |
void | restart () |
Restart the clock. | |
void | pause () |
void | resume () |
![]() | |
virtual | ~VirtualClock () |
A VirtualClock wrapper adding pause/resume capabilities.
|
inline |
Construct an InterruptableVirtualClock from a VirtualClock source.
The interruptable virtual clock starts in 'stop' mode, use resume() to start. @param src A VirtualClock to use as source, ownership is retained by caller which should guarantee to keep the source alive for the whole
lifetime of this instance.
|
inlinevirtual |
Return elapsed time, taking interruptions in consideration.
Implements gnash::VirtualClock.
References gnash::VirtualClock::elapsed().
|
inline |
Referenced by gnash::Gui::pause(), and gnash::Gui::stop().
|
inlinevirtual |
|
inline |
References assert, and gnash::VirtualClock::elapsed().
Referenced by gnash::Gui::play(), and gnash::Gui::start().