lemon/time_measure.h
changeset 308 dd4f08b7e203
parent 210 81cfc04531e8
child 313 64f8f7cc6168
equal deleted inserted replaced
6:5a86d8cd3c15 7:7c596b5ccfbc
   290   ///distorted results.
   290   ///distorted results.
   291   ///
   291   ///
   292   ///\note If you want to measure the running time of the execution of a certain
   292   ///\note If you want to measure the running time of the execution of a certain
   293   ///function, consider the usage of \ref TimeReport instead.
   293   ///function, consider the usage of \ref TimeReport instead.
   294   ///
   294   ///
   295   ///\todo This shouldn't be Unix (Linux) specific.
       
   296   ///\sa TimeReport
   295   ///\sa TimeReport
   297   class Timer
   296   class Timer
   298   {
   297   {
   299     int _running; //Timer is running iff _running>0; (_running>=0 always holds)
   298     int _running; //Timer is running iff _running>0; (_running>=0 always holds)
   300     TimeStamp start_time; //This is the relativ start-time if the timer
   299     TimeStamp start_time; //This is the relativ start-time if the timer
   485   ///  }
   484   ///  }
   486   ///\endcode
   485   ///\endcode
   487   ///
   486   ///
   488   ///\sa Timer
   487   ///\sa Timer
   489   ///\sa NoTimeReport
   488   ///\sa NoTimeReport
   490   ///\todo There is no test case for this
       
   491   class TimeReport : public Timer
   489   class TimeReport : public Timer
   492   {
   490   {
   493     std::string _title;
   491     std::string _title;
   494     std::ostream &_os;
   492     std::ostream &_os;
   495   public:
   493   public: