test/time_measure_test.cc
changeset 1863 12e0db6b7d0e
parent 1689 f1795dafe42c
child 1875 98698b69a902
equal deleted inserted replaced
1:ef8addc98f5a 2:32019c12fe2b
    34 {
    34 {
    35   Timer T;
    35   Timer T;
    36   int n;
    36   int n;
    37   for(n=0;T.realTime()<1.0;n++) ;
    37   for(n=0;T.realTime()<1.0;n++) ;
    38   std::cout << T << " (" << n << " time queries)\n";
    38   std::cout << T << " (" << n << " time queries)\n";
    39   T.reset();
    39   T.restart();
    40   while(T.realTime()<2.0) ;
    40   while(T.realTime()<2.0) ;
    41   std::cout << T << '\n';
    41   std::cout << T << '\n';
    42   TimeStamp full;
    42   TimeStamp full;
    43   TimeStamp t=runningTimeTest(f,1,&n,&full);
    43   TimeStamp t=runningTimeTest(f,1,&n,&full);
    44   std::cout << t << " (" << n << " tests)\n";
    44   std::cout << t << " (" << n << " tests)\n";