Gnash  0.8.10
Public Member Functions
gnash::ManualClock Class Reference

A manually advanced clock. More...

#include <ManualClock.h>

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

List of all members.

Public Member Functions

 ManualClock ()
 Construct a manual clock.
unsigned long elapsed () const
 Return number of milliseconds elapsed since start.
void restart ()
 Restart the clock.
void advance (unsigned long amount)
 Advance the clock by the given amount of milliseconds.

Detailed Description

A manually advanced clock.


Constructor & Destructor Documentation

gnash::ManualClock::ManualClock ( ) [inline]

Construct a manual clock.


Member Function Documentation

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

Advance the clock by the given amount of milliseconds.

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

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

Implements gnash::VirtualClock.

Referenced by gnash::DumpGui::run(), gnash::DumpGui::writeFrame(), and gnash::DumpGui::writeSamples().

void gnash::ManualClock::restart ( ) [inline, virtual]

Restart the clock.

Implements gnash::VirtualClock.


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