Public Member Functions

gnash::VirtualClock Class Reference

A class used to virtualize time flow. More...

#include <VirtualClock.h>

Inheritance diagram for gnash::VirtualClock:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual unsigned long int elapsed () const =0
 Return number of milliseconds elapsed since start.
virtual void restart ()=0
 Restart the clock.
virtual ~VirtualClock ()

Detailed Description

A class used to virtualize time flow.

This class will be used to fetch current time everytime it is needed by the core lib.


Constructor & Destructor Documentation

virtual gnash::VirtualClock::~VirtualClock (  )  [inline, virtual]

Member Function Documentation

virtual unsigned long int gnash::VirtualClock::elapsed (  )  const [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::ManualClock, gnash::SystemClock, and gnash::InterruptableVirtualClock.

Referenced by gnash::PlayHead::advanceIfConsumed(), gnash::InterruptableVirtualClock::elapsed(), gnash::VM::getTime(), gnash::VM::randomNumberGenerator(), gnash::InterruptableVirtualClock::restart(), gnash::InterruptableVirtualClock::resume(), gnash::PlayHead::seekTo(), and gnash::PlayHead::setState().

virtual void gnash::VirtualClock::restart (  )  [pure virtual]

The documentation for this class was generated from the following file: