Gnash  0.8.10
Public Member Functions
gnash::InterruptableVirtualClock Class Reference

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

#include <VirtualClock.h>

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

List of all members.

Public Member Functions

 InterruptableVirtualClock (VirtualClock &src)
 Construct an InterruptableVirtualClock from a VirtualClock source.
unsigned long int elapsed () const
 Return elapsed time, taking interruptions in consideration.
void restart ()
 Restart the clock.
void pause ()
void resume ()

Detailed Description

A VirtualClock wrapper adding pause/resume capabilities.


Constructor & Destructor Documentation

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

unsigned long int gnash::InterruptableVirtualClock::elapsed ( ) const [inline, virtual]

Return elapsed time, taking interruptions in consideration.

Implements gnash::VirtualClock.

References gnash::VirtualClock::elapsed().

void gnash::InterruptableVirtualClock::pause ( ) [inline]
void gnash::InterruptableVirtualClock::restart ( ) [inline, virtual]

Restart the clock.

Implements gnash::VirtualClock.

References gnash::VirtualClock::elapsed().

void gnash::InterruptableVirtualClock::resume ( ) [inline]

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