COIN-OR::LEMON - Graph Library

Changeset 1960:a60b681d0825 in lemon-0.x for test


Ignore:
Timestamp:
02/06/06 10:11:53 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2536
Message:
  • Increased max. number of iteration
  • Better tests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/time_measure_test.cc

    r1956 r1960  
    2929{
    3030  double d=0;
    31   for(int i=0;i<10000;i++)
     31  for(int i=0;i<1000;i++)
    3232    d+=0.1;
     33}
     34
     35void g()
     36{
     37  static Timer T;
     38 
     39  double d=0;
     40  for(int i=0;i<1000;i++)
     41    TimeStamp x(T);
    3342}
    3443
     
    4352  std::cout << T << '\n';
    4453  TimeStamp full;
    45   TimeStamp t=runningTimeTest(f,1,&n,&full);
     54  TimeStamp t;
     55  t=runningTimeTest(f,1,&n,&full);
     56  std::cout << t << " (" << n << " tests)\n";
     57  std::cout << "Total: " << full << "\n";
     58 
     59  t=runningTimeTest(g,1,&n,&full);
    4660  std::cout << t << " (" << n << " tests)\n";
    4761  std::cout << "Total: " << full << "\n";
Note: See TracChangeset for help on using the changeset viewer.