LibBeamApi
0.3.8
|
Stopwatch style timer. More...
#include <BTimer.h>
Public Member Functions | |
BTimer () | |
~BTimer () | |
void | start () |
Start timer. More... | |
void | stop () |
Stop timer. More... | |
void | clear () |
Clear timer. More... | |
double | getElapsedTime () |
Returns the elapsed time from the last start. More... | |
void | add (BTimer &timer) |
Add two timers. More... | |
double | average () |
Average time is duration between start() and stop() / number of stops. More... | |
double | peak () |
Peak time. More... | |
Static Private Member Functions | |
static double | getTime () |
Private Attributes | |
BMutex | olock |
unsigned int | onum |
double | ostartTime |
double | oendTime |
double | oaverage |
double | opeak |
Stopwatch style timer.
BTimer::BTimer | ( | ) |
BTimer::~BTimer | ( | ) |
void BTimer::add | ( | BTimer & | timer | ) |
Add two timers.
void BTimer::clear | ( | ) |
Clear timer.
double BTimer::getElapsedTime | ( | ) |
Returns the elapsed time from the last start.
|
staticprivate |
double BTimer::peak | ( | ) |
Peak time.
void BTimer::start | ( | ) |
Start timer.
void BTimer::stop | ( | ) |
Stop timer.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |