#include <chrono>
#include <stack>
Go to the source code of this file.
◆ Clock
◆ TPoint
◆ tic()
Starts stopwatch timer. Use as
double toc(TPoint const &t_b=MyStopWatch.top())
The timining can be nested and the recent time point is stored on top of the stack.
- Returns
- recent time point
- See also
- toc
Definition at line 24 of file timing.h.
◆ toc()
Returns the elapsed time from stopwatch.
The time point from top of the stack is used if time point t_b
is not passed as input parameter. Use as
or as
The last option is to be used in the case of non-nested but overlapping time measurements.
- Parameters
-
[in] | t_b | start time of some stop watch |
- Returns
- elapsed time in seconds.
Definition at line 43 of file timing.h.
◆ MyStopWatch
std::stack<TPoint> MyStopWatch |
|
inline |
starting time of stopwatch
Definition at line 14 of file timing.h.