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

General-purpose wall-clock timer. More...

#include <WallClockTimer.h>

Public Member Functions

 WallClockTimer ()
 Construct a wall-clock timer. More...
 
std::uint32_t elapsed () const
 Return time elapsed in milliseconds since construction or last call to ::restart() More...
 
void restart ()
 Restart the timer. More...
 

Detailed Description

General-purpose wall-clock timer.

Constructor & Destructor Documentation

§ WallClockTimer()

gnash::WallClockTimer::WallClockTimer ( )

Construct a wall-clock timer.

Member Function Documentation

§ elapsed()

std::uint32_t gnash::WallClockTimer::elapsed ( ) const

Return time elapsed in milliseconds since construction or last call to ::restart()

References gnash::clocktime::getTicks().

§ restart()

void gnash::WallClockTimer::restart ( )

Restart the timer.

References gnash::clocktime::getTicks().


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