COIN-OR::LEMON - Graph Library

Changeset 558:f53d641aa967 in lemon-1.2 for test/time_measure_test.cc


Ignore:
Timestamp:
03/27/09 18:49:25 (11 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Improve timer and counter tests (#253)

  • Do not print the output of counter_test.cc.
  • Check the output of counter_test.cc.
  • Shorten the running time of time_measure_test.cc.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/time_measure_test.cc

    r440 r558  
    4040  Timer T;
    4141  unsigned int n;
    42   for(n=0;T.realTime()<1.0;n++) ;
     42  for(n=0;T.realTime()<0.1;n++) ;
    4343  std::cout << T << " (" << n << " time queries)\n";
    44   T.restart();
    45   while(T.realTime()<2.0) ;
    46   std::cout << T << '\n';
     44
    4745  TimeStamp full;
    4846  TimeStamp t;
    49   t=runningTimeTest(f,1,&n,&full);
     47  t=runningTimeTest(f,0.1,&n,&full);
    5048  std::cout << t << " (" << n << " tests)\n";
    5149  std::cout << "Total: " << full << "\n";
    5250
    53   t=runningTimeTest(g,1,&n,&full);
     51  t=runningTimeTest(g,0.1,&n,&full);
    5452  std::cout << t << " (" << n << " tests)\n";
    5553  std::cout << "Total: " << full << "\n";
Note: See TracChangeset for help on using the changeset viewer.