src/test/time_measure.cc
changeset 545 367929c61461
child 566 14355e502338
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/test/time_measure.cc	Thu May 06 14:11:09 2004 +0000
     1.3 @@ -0,0 +1,19 @@
     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++;i<100) j+=2;
    1.18 +  std::cout << T << '\n';
    1.19 +  T.reset();
    1.20 +  for(int i=0;i++;i<100) j+=2;
    1.21 +  std::cout << T << '\n';
    1.22 +}