# HG changeset patch # User alpar # Date 1198055782 0 # Node ID a0443c41122030219eb0fbb564081496e145e45b # Parent faaa54ec452044b0d5b4be316a0ab723c8237ab7 Change the local variables lower case diff -r faaa54ec4520 -r a0443c411220 lemon/time_measure.h --- a/lemon/time_measure.h Mon Dec 17 09:54:26 2007 +0000 +++ b/lemon/time_measure.h Wed Dec 19 09:16:22 2007 +0000 @@ -241,12 +241,12 @@ /// /// ... /// - /// Timer T; + /// Timer t; /// doSomething(); - /// std::cout << T << '\n'; - /// T.restart(); + /// std::cout << t << '\n'; + /// t.restart(); /// doSomethingElse(); - /// std::cout << T << '\n'; + /// std::cout << t << '\n'; /// /// ... /// @@ -261,7 +261,7 @@ ///the time counters have a certain (10ms on a typical Linux system) ///granularity. ///Therefore this tool is not appropriate to measure very short times. - ///Also, if you start and stop the timer very frequently, it could lead + ///Also, if you start and stop the timer very frequently, it could lead to ///distorted results. /// ///\note If you want to measure the running time of the execution of a certain @@ -348,7 +348,13 @@ ///Halt (i.e stop immediately) the time counters - ///This function stops immediately the time counters. + ///This function stops immediately the time counters, i.e. t.stop() + ///is a faster + ///equivalent of the following. + ///\code + /// while(t.running()) t.stop() + ///\endcode + /// /// ///\sa stop() ///\sa restart() @@ -422,9 +428,9 @@ ///This conversion computes the ellapsed time, therefore you can print ///the ellapsed time like this. ///\code - /// Timer T; + /// Timer t; /// doSomething(); - /// std::cout << T << '\n'; + /// std::cout << t << '\n'; ///\endcode operator TimeStamp () const { @@ -444,7 +450,7 @@ ///\code /// void myAlg(ListGraph &g,int n) /// { - /// TimeReport TR("Running time of myAlg: "); + /// TimeReport tr("Running time of myAlg: "); /// ... //Here comes the algorithm /// } ///\endcode