COIN-OR::LEMON - Graph Library

Changeset 1069:7b81a36809c6 in lemon-0.x for src


Ignore:
Timestamp:
01/11/05 10:04:08 (16 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1465
Message:
  • Minor correction in time_measure.h
  • A bit more meaningful test in time_measure_test.cc
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/time_measure.h

    r1005 r1069  
    188188
    189189    ///Resets the time counters
    190     TimeStamp reset()
    191     {
    192       TimeStamp t(start_time);
     190
     191    ///Resets the time counters
     192    ///
     193    void reset()
     194    {
    193195      _reset();
    194       return start_time-t;
    195196    }
    196197
  • src/test/time_measure_test.cc

    r921 r1069  
    2626int main()
    2727{
    28   int j=0;
    2928  Timer T;
    30   for(int i=0;i<100;i++) j+=2;
     29  while(T.getRealTime()<1.0) ;
    3130  std::cout << T << '\n';
    3231  T.reset();
    33   for(int i=0;i<100;i++) j+=2;
     32  while(T.getRealTime()<2.0) ;
    3433  std::cout << T << '\n';
    3534 
Note: See TracChangeset for help on using the changeset viewer.