src/test/time_measure_test.cc
changeset 567 efaa79ee8d14
parent 566 14355e502338
child 906 17f31d280385
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/test/time_measure_test.cc	Fri May 07 06:57:50 2004 +0000
     1.3 @@ -0,0 +1,21 @@
     1.4 +#include <hugo/time_measure.h>
     1.5 +
     1.6 +///\file \brief Test cases for time_measure.h
     1.7 +///
     1.8 +///\todo To be extended
     1.9 +
    1.10 +
    1.11 +using namespace hugo;
    1.12 +
    1.13 +int main()
    1.14 +{
    1.15 +  int j=0;
    1.16 +  Timer T;
    1.17 +  for(int i=0;i<100;i++) j+=2;
    1.18 +  std::cout << T << '\n';
    1.19 +  T.reset();
    1.20 +  for(int i=0;i<100;i++) j+=2;
    1.21 +  std::cout << T << '\n';
    1.22 +  
    1.23 +  return 0;
    1.24 +}