List of all members | Public Types | Public Member Functions
print_timer Struct Reference

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...
 

Detailed Description

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.

Author
RevKit
Since
1.0

Member Typedef Documentation

typedef void result_type

Result value of the print_timer is void, since it does not return anything in the operator call.

See Also
timer::operator()()
Author
RevKit
Since
1.0

Constructor & Destructor Documentation

print_timer ( )
inline

Default constructor.

Available for delayed starting of the timer.

Author
RevKit
Since
1.0
print_timer ( std::ostream &  _os = std::cout)
inlineexplicit

Default constructor.

Parameters
_osStream where to write the run-time after measuring
Author
RevKit
Since
1.0

Member Function Documentation

void operator() ( double  runtime) const
inline

Prints the measured run-time.

Parameters
runtimeThe run-time
Author
RevKit
Since
1.0

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

Generated on Tue Apr 16 2013 08:12:02 for RevKit by doxygen 1.8.3.1