Functor for the timer class which prints the run-time to an output stream. More...
Public Types | |
typedef void | result_type |
Public Member Functions | |
print_timer () | |
Default constructor. More... | |
print_timer (std::ostream &_os=std::cout) | |
Default constructor. More... | |
void | operator() (double runtime) const |
Prints the measured run-time. More... | |
Functor for the timer class which prints the run-time to an output stream.
This functor prints the run-time to a given output stream which can be specified in the constructor.
typedef void result_type |
Result value of the print_timer is void, since it does not return anything in the operator call.
|
inline |
Default constructor.
Available for delayed starting of the timer.
|
inlineexplicit |
Default constructor.
_os | Stream where to write the run-time after measuring |
|
inline |
Prints the measured run-time.
runtime | The run-time |