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. | |
print_timer (std::ostream &_os=std::cout) | |
Default constructor. | |
void | operator() (double runtime) const |
Prints the measured run-time. |
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.
print_timer | ( | ) | [inline] |
Default constructor.
Available for delayed starting of the timer.
print_timer | ( | std::ostream & | _os = std::cout |
) | [inline, explicit] |
Default constructor.
_os | Stream where to write the run-time after measuring |
void operator() | ( | double | runtime | ) | const [inline] |
Prints the measured run-time.
runtime | The run-time |