test/time_measure_test.cc
changeset 607 49a39bae067c
parent 463 88ed40ad0d4f
child 1157 761fe0846f49
     1.1 --- a/test/time_measure_test.cc	Sun Mar 29 23:08:20 2009 +0200
     1.2 +++ b/test/time_measure_test.cc	Sun Mar 29 22:19:14 2009 +0100
     1.3 @@ -39,18 +39,16 @@
     1.4  {
     1.5    Timer T;
     1.6    unsigned int n;
     1.7 -  for(n=0;T.realTime()<1.0;n++) ;
     1.8 +  for(n=0;T.realTime()<0.1;n++) ;
     1.9    std::cout << T << " (" << n << " time queries)\n";
    1.10 -  T.restart();
    1.11 -  while(T.realTime()<2.0) ;
    1.12 -  std::cout << T << '\n';
    1.13 +
    1.14    TimeStamp full;
    1.15    TimeStamp t;
    1.16 -  t=runningTimeTest(f,1,&n,&full);
    1.17 +  t=runningTimeTest(f,0.1,&n,&full);
    1.18    std::cout << t << " (" << n << " tests)\n";
    1.19    std::cout << "Total: " << full << "\n";
    1.20  
    1.21 -  t=runningTimeTest(g,1,&n,&full);
    1.22 +  t=runningTimeTest(g,0.1,&n,&full);
    1.23    std::cout << t << " (" << n << " tests)\n";
    1.24    std::cout << "Total: " << full << "\n";
    1.25