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

A VirtualClock wrapper adding pause/resume capabilities. More...

#include <VirtualClock.h>

Inheritance diagram for gnash::InterruptableVirtualClock:
gnash::VirtualClock

Public Member Functions

 InterruptableVirtualClock (VirtualClock &src)
 Construct an InterruptableVirtualClock from a VirtualClock source. More...
 
unsigned long int elapsed () const
 Return elapsed time, taking interruptions in consideration. More...
 
void restart ()
 Restart the clock. More...
 
void pause ()
 
void resume ()
 
- Public Member Functions inherited from gnash::VirtualClock
virtual ~VirtualClock ()
 

Detailed Description

A VirtualClock wrapper adding pause/resume capabilities.

Constructor & Destructor Documentation

§ InterruptableVirtualClock()

gnash::InterruptableVirtualClock::InterruptableVirtualClock ( VirtualClock src)
inline

Construct an InterruptableVirtualClock from a VirtualClock source.

The interruptable virtual clock starts in 'stop' mode, use resume() to start.

Parameters
srcA VirtualClock to use as source, ownership is retained by caller which should guarantee to keep the source alive for the whole lifetime of this instance.

Member Function Documentation

§ elapsed()

unsigned long int gnash::InterruptableVirtualClock::elapsed ( ) const
inlinevirtual

Return elapsed time, taking interruptions in consideration.

Implements gnash::VirtualClock.

§ pause()

void gnash::InterruptableVirtualClock::pause ( )
inline

§ restart()

void gnash::InterruptableVirtualClock::restart ( )
inlinevirtual

Restart the clock.

Implements gnash::VirtualClock.

§ resume()

void gnash::InterruptableVirtualClock::resume ( )
inline

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