void myAlg(ListGraph &g,int n) { TimeReport tr("Running time of myAlg: "); ... //Here comes the algorithm }
#include <lemon/time_measure.h>
Public Member Functions | |
TimeReport (std::string title, std::ostream &os=std::cerr, bool run=true) | |
| |
~TimeReport () | |
Prints the ellapsed time on destruction. |
TimeReport | ( | std::string | title, | |
std::ostream & | os = std::cerr , |
|||
bool | run = true | |||
) | [inline] |
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. |