Beamlib  3.0.1
This is the Beam C++ class library.
Public Member Functions | List of all members
BTimer Class Reference

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...
 

Detailed Description

Stopwatch style timer.

Constructor & Destructor Documentation

◆ BTimer()

BTimer::BTimer ( )

◆ ~BTimer()

BTimer::~BTimer ( )

Member Function Documentation

◆ start()

void BTimer::start ( )

Start timer.

◆ stop()

void BTimer::stop ( )

Stop timer.

◆ clear()

void BTimer::clear ( )

Clear timer.

◆ getElapsedTime()

double BTimer::getElapsedTime ( )

Returns the elapsed time from the last start.

◆ add()

void BTimer::add ( BTimer timer)

Add two timers.

◆ average()

double BTimer::average ( )

Average time is duration between start() and stop() / number of stops.

◆ peak()

double BTimer::peak ( )

Peak time.


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