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

A system-clock based virtual clock. More...

#include <SystemClock.h>

Inheritance diagram for gnash::SystemClock:
gnash::VirtualClock

Public Member Functions

 SystemClock ()
 Construct the clock, starting it. More...
 
unsigned long int elapsed () const
 Return number of milliseconds elapsed since start. More...
 
void restart ()
 Restart the clock. More...
 
- Public Member Functions inherited from gnash::VirtualClock
virtual ~VirtualClock ()
 

Detailed Description

A system-clock based virtual clock.

This class uses the system clock for computing elapsed time. See http://en.wikipedia.org/wiki/System_time for capacity

Constructor & Destructor Documentation

§ SystemClock()

gnash::SystemClock::SystemClock ( )

Construct the clock, starting it.

Member Function Documentation

§ elapsed()

unsigned long int gnash::SystemClock::elapsed ( ) const
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::movie_root::advance(), gnash::ActionExec::operator()(), and gnash::NullGui::run().

§ restart()

void gnash::SystemClock::restart ( )
virtual

Restart the clock.

Implements gnash::VirtualClock.

Referenced by gnash::ActionExec::operator()().


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