Public Member Functions

gnash::ManualClock Class Reference

A manually advanced clock. More...

#include <ManualClock.h>

Inheritance diagram for gnash::ManualClock:
Inheritance graph
[legend]
Collaboration diagram for gnash::ManualClock:
Collaboration graph
[legend]

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::MovieTester::advanceClock().

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.

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

Restart the clock.

Implements gnash::VirtualClock.


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