|
AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
|
#include <Timer.h>
Public Member Functions | |
| Timer () | |
| virtual | ~Timer () |
| void | Start () |
| void | Stop () |
| void | Reset () |
| double | GetElapsedTimeSeconds () |
| double | GetDeltaTimeSeconds () |
| virtual void | InitBaseTime ()=0 |
| virtual double | GetCurrentTimeSeconds ()=0 |
| bool | IsRunning () const |
| void | SetMaxDeltaTimeSeconds (double maxDeltaTimeSeconds) |
| double | GetMaxDeltaTimeSeconds () const |
Protected Attributes | |
| bool | running |
| double | startTimeSeconds |
| double | elapsedTimeSeconds |
| double | lastTimeSeconds |
| double | maxDeltaTimeSeconds |
\brief This class is sometimes used to keep time in a more formal way.
| Timer::Timer | ( | ) |
|
virtual |
|
pure virtual |
Implemented in AudioDataLib::ClockTicksTimer, AudioDataLib::HighResTimer, and AudioDataLib::SystemClockTimer.
| double Timer::GetDeltaTimeSeconds | ( | ) |
| double Timer::GetElapsedTimeSeconds | ( | ) |
|
inline |
|
pure virtual |
Implemented in AudioDataLib::ClockTicksTimer, AudioDataLib::HighResTimer, and AudioDataLib::SystemClockTimer.
|
inline |
| void Timer::Reset | ( | ) |
|
inline |
| void Timer::Start | ( | ) |
| void Timer::Stop | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |