Account
LibTmsApi 2.3.0 |
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
BTimer Class Reference
Stopwatch style timer. More...
#include <BTimer.h>
Public Member Functions | |
BTimer () | |
~BTimer () | |
void | start () |
Start timer. | |
void | stop () |
Stop timer. | |
void | clear () |
Clear timer. | |
double | getElapsedTime () |
Returns the elapsed time from the last start. | |
void | add (BTimer &timer) |
Add two timers. | |
double | average () |
Average time is duration between start() and stop() / number of stops. | |
double | peak () |
Peak time. | |
Static Private Member Functions | |
static double | getTime () |
Private Attributes | |
BMutex | olock |
unsigned int | onum |
double | ostartTime |
double | oendTime |
double | oaverage |
double | opeak |
Detailed Description
Stopwatch style timer.
Constructor & Destructor Documentation
◆ BTimer()
BTimer::BTimer | ( | ) |
◆ ~BTimer()
BTimer::~BTimer | ( | ) |
Member Function Documentation
◆ add()
void BTimer::add | ( | BTimer & | timer | ) |
Add two timers.
◆ average()
◆ clear()
void BTimer::clear | ( | ) |
Clear timer.
◆ getElapsedTime()
double BTimer::getElapsedTime | ( | ) |
Returns the elapsed time from the last start.
◆ getTime()
| staticprivate |
◆ peak()
double BTimer::peak | ( | ) |
Peak time.
◆ start()
void BTimer::start | ( | ) |
Start timer.
◆ stop()
void BTimer::stop | ( | ) |
Stop timer.
Member Data Documentation
◆ oaverage
| private |
◆ oendTime
| private |
◆ olock
| private |
◆ onum
| private |
◆ opeak
| private |
◆ ostartTime
| private |
The documentation for this class was generated from the following files:
- /src/cern/tms/tms/beam/libBeam/BTimer.h
- /src/cern/tms/tms/beam/libBeam/BTimer.cpp
Generated by 1.9.7