lemon/time_measure.h
changeset 2495 e4f8367beb41
parent 2391 14a343be7a5a
child 2543 a0443c411220
equal deleted inserted replaced
19:9520fd3a0cf1 20:e34758f0e65d
   231   ///Class for measuring the cpu time and real time usage of the process
   231   ///Class for measuring the cpu time and real time usage of the process
   232 
   232 
   233   ///Class for measuring the cpu time and real time usage of the process.
   233   ///Class for measuring the cpu time and real time usage of the process.
   234   ///It is quite easy-to-use, here is a short example.
   234   ///It is quite easy-to-use, here is a short example.
   235   ///\code
   235   ///\code
   236   ///#include<lemon/time_measure.h>
   236   /// #include<lemon/time_measure.h>
   237   ///#include<iostream>
   237   /// #include<iostream>
   238   ///
   238   ///
   239   ///int main()
   239   /// int main()
   240   ///{
   240   /// {
   241   ///
   241   ///
   242   ///  ...
   242   ///   ...
   243   ///
   243   ///
   244   ///  Timer T;
   244   ///   Timer T;
   245   ///  doSomething();
   245   ///   doSomething();
   246   ///  std::cout << T << '\n';
   246   ///   std::cout << T << '\n';
   247   ///  T.restart();
   247   ///   T.restart();
   248   ///  doSomethingElse();
   248   ///   doSomethingElse();
   249   ///  std::cout << T << '\n';
   249   ///   std::cout << T << '\n';
   250   ///
   250   ///
   251   ///  ...
   251   ///   ...
   252   ///
   252   ///
   253   ///}
   253   /// }
   254   ///\endcode
   254   ///\endcode
   255   ///
   255   ///
   256   ///The \ref Timer can also be \ref stop() "stopped" and
   256   ///The \ref Timer can also be \ref stop() "stopped" and
   257   ///\ref start() "started" again, so it is possible to compute collected
   257   ///\ref start() "started" again, so it is possible to compute collected
   258   ///running times.
   258   ///running times.