TimeReport Class Reference
[Time measuring and Counting]

#include <lemon/time_measure.h>

Inherits Timer.

Inheritance diagram for TimeReport:

Inheritance graph
[legend]
List of all members.

Detailed Description

Same as Timer but prints a report on destruction. This example shows its usage.
       void myAlg(ListGraph &g,int n)
       {
         TimeReport TR("Running time of myAlg: ");
         ... //Here comes the algorithm
       }

See also:
Timer

NoTimeReport

Todo:
There is no test case for this


Public Member Functions

 TimeReport (std::string title, std::ostream &os=std::cerr, bool run=true)
 
 ~TimeReport ()
 Prints the ellapsed time on destruction.


Constructor & Destructor Documentation

TimeReport ( std::string  title,
std::ostream &  os = std::cerr,
bool  run = true 
) [inline]

Parameters:
title This text will be printed before the ellapsed time.
os The stream to print the report to.
run Sets whether the timer should start immediately.


The documentation for this class was generated from the following file:
Generated on Tue Oct 31 09:51:22 2006 for LEMON by  doxygen 1.5.1