Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::ManualClock Class Reference

A manually advanced clock. More...

#include <ManualClock.h>

Inheritance diagram for gnash::ManualClock:
gnash::VirtualClock

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...
 
- Public Member Functions inherited from gnash::VirtualClock
virtual ~VirtualClock ()
 

Detailed Description

A manually advanced clock.

Constructor & Destructor Documentation

§ ManualClock()

gnash::ManualClock::ManualClock ( )
inline

Construct a manual clock.

Member Function Documentation

§ advance()

void gnash::ManualClock::advance ( unsigned long  amount)
inline

Advance the clock by the given amount of milliseconds.

Referenced by gnash::DumpGui::run().

§ elapsed()

unsigned long gnash::ManualClock::elapsed ( ) const
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().

§ restart()

void gnash::ManualClock::restart ( )
inlinevirtual

Restart the clock.

Implements gnash::VirtualClock.


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