Beam-lib
2.16.3
This is the Beam C++ class library.
|
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... | |
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.
double BTimer::peak | ( | ) |
Peak time.
void BTimer::start | ( | ) |
Start timer.
void BTimer::stop | ( | ) |
Stop timer.