test/time_measure_test.cc
changeset 783 ef88c0a30f85
parent 440 88ed40ad0d4f
child 997 761fe0846f49
     1.1 --- a/test/time_measure_test.cc	Mon Jan 12 23:11:39 2009 +0100
     1.2 +++ b/test/time_measure_test.cc	Thu Nov 05 15:48:01 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