print_timer Struct Reference

Functor for the timer class which prints the run-time to an output stream. More...

List of all members.

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.

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  )  [inline, explicit]

Default constructor.

Parameters:
_os Stream 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:
runtime The run-time
Author:
RevKit
Since:
1.0

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

Generated on Tue Dec 21 2010 21:52:13 for RevKit by doxygen 1.7.1