test/time_measure_test.cc
changeset 802 994c7df296c9
parent 440 88ed40ad0d4f
child 997 761fe0846f49
     1.1 --- a/test/time_measure_test.cc	Fri Nov 13 12:33:33 2009 +0100
     1.2 +++ b/test/time_measure_test.cc	Thu Dec 10 17:05:35 2009 +0100
     1.3 @@ -2,7 +2,7 @@
     1.4   *
     1.5   * This file is a part of LEMON, a generic C++ optimization library.
     1.6   *
     1.7 - * Copyright (C) 2003-2008
     1.8 + * Copyright (C) 2003-2009
     1.9   * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.10   * (Egervary Research Group on Combinatorial Optimization, EGRES).
    1.11   *
    1.12 @@ -39,18 +39,16 @@
    1.13  {
    1.14    Timer T;
    1.15    unsigned int n;
    1.16 -  for(n=0;T.realTime()<1.0;n++) ;
    1.17 +  for(n=0;T.realTime()<0.1;n++) ;
    1.18    std::cout << T << " (" << n << " time queries)\n";
    1.19 -  T.restart();
    1.20 -  while(T.realTime()<2.0) ;
    1.21 -  std::cout << T << '\n';
    1.22 +
    1.23    TimeStamp full;
    1.24    TimeStamp t;
    1.25 -  t=runningTimeTest(f,1,&n,&full);
    1.26 +  t=runningTimeTest(f,0.1,&n,&full);
    1.27    std::cout << t << " (" << n << " tests)\n";
    1.28    std::cout << "Total: " << full << "\n";
    1.29  
    1.30 -  t=runningTimeTest(g,1,&n,&full);
    1.31 +  t=runningTimeTest(g,0.1,&n,&full);
    1.32    std::cout << t << " (" << n << " tests)\n";
    1.33    std::cout << "Total: " << full << "\n";
    1.34