Bembel
 
Loading...
Searching...
No Matches
Bembel::IO::Stopwatch Class Reference

A simple class for benchmarking. More...

#include <Stopwatch.hpp>

Detailed Description

A simple class for benchmarking.

A simple stopwatch class for benchmarking. start() starts the timer, lap() gives the time from either start or the last lap, stop() gives the overall time since start, and get_data() returns a std::vector<double> with all lap-times. It is written such that its own timekeeping is not measured.

Definition at line 27 of file Stopwatch.hpp.

Public Member Functions

void tic (void)
 
double toc (void)
 
void start ()
 
double lap ()
 
double stop ()
 
std::vector< doubleget_data ()
 

Constructor & Destructor Documentation

◆ Stopwatch()

Bembel::IO::Stopwatch::Stopwatch ( )
inline

Definition at line 35 of file Stopwatch.hpp.

Member Function Documentation

◆ get_data()

std::vector< double > Bembel::IO::Stopwatch::get_data ( )
inline

Definition at line 75 of file Stopwatch.hpp.

◆ lap()

double Bembel::IO::Stopwatch::lap ( )
inline

Definition at line 53 of file Stopwatch.hpp.

◆ start()

void Bembel::IO::Stopwatch::start ( )
inline

Definition at line 47 of file Stopwatch.hpp.

◆ stop()

double Bembel::IO::Stopwatch::stop ( )
inline

Definition at line 63 of file Stopwatch.hpp.

◆ tic()

void Bembel::IO::Stopwatch::tic ( void  )
inline

Definition at line 40 of file Stopwatch.hpp.

◆ toc()

double Bembel::IO::Stopwatch::toc ( void  )
inline

Definition at line 41 of file Stopwatch.hpp.


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