Functor for the timer class which assigns the run-time to a given variable.
More...
Functor for the timer class which assigns the run-time to a given variable.
Make sure that the variable for the run-time is declared outside of the scope of time measuring.
Example
- Author
- RevKit
- Since
- 1.0
Result value of the reference_timer is double, since it returns the value of the reference value, the run-time in the operator call. This is only useful, when using the intermediate measurement in timer.
- See Also
- timer::operator()()
- Author
- RevKit
- Since
- 1.0
Default constructor.
Available for delayed starting of the timer.
- Author
- RevKit
- Since
- 1.0
Default constructor.
- Parameters
-
_runtime | A pointer referencing to the variable where the run-time should be saved. |
- Author
- RevKit
- Since
- 1.0
double operator() |
( |
double |
r | ) |
const |
|
inline |
Saves the run-time to the variable.
- Parameters
-
- Author
- RevKit
- Since
- 1.0
The documentation for this struct was generated from the following file: