Bembel
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< double > get_data ()
 

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