Gnash
0.8.11dev
|
A class used to virtualize time flow. More...
#include <VirtualClock.h>
Public Member Functions | |
virtual unsigned long int | elapsed () const =0 |
Return number of milliseconds elapsed since start. More... | |
virtual void | restart ()=0 |
Restart the clock. More... | |
virtual | ~VirtualClock () |
A class used to virtualize time flow.
This class will be used to fetch current time everytime it is needed by the core lib.
|
inlinevirtual |
|
pure 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.
Implemented in gnash::InterruptableVirtualClock, gnash::SystemClock, and gnash::ManualClock.
Referenced by gnash::PlayHead::advanceIfConsumed(), gnash::VM::getTime(), gnash::PlayHead::seekTo(), and gnash::PlayHead::setState().
|
pure virtual |
Restart the clock.
Implemented in gnash::InterruptableVirtualClock, gnash::ManualClock, and gnash::SystemClock.
Referenced by gnash::VM::VM().