src/test/time_measure_test.cc
author alpar
Fri, 03 Sep 2004 09:41:50 +0000
changeset 793 9cd0aeea47b0
parent 566 14355e502338
child 906 17f31d280385
permissions -rw-r--r--
- BFD/DFS/Dijkstra compile test is done with skeleton::GraphSkeleton graph
and skeleton::ReadMap.
- 'skeleton::' is explicitely written instead of 'using namespace ...'
in graph_test.cc
- Output messages of type "makeRep(3)..." in unionfind_test.cc have been
changed in order not to confuse compiler output parsers.
alpar@545
     1
#include <hugo/time_measure.h>
alpar@545
     2
alpar@545
     3
///\file \brief Test cases for time_measure.h
alpar@545
     4
///
alpar@545
     5
///\todo To be extended
alpar@545
     6
alpar@545
     7
alpar@545
     8
using namespace hugo;
alpar@545
     9
alpar@545
    10
int main()
alpar@545
    11
{
alpar@545
    12
  int j=0;
alpar@545
    13
  Timer T;
alpar@567
    14
  for(int i=0;i<100;i++) j+=2;
alpar@545
    15
  std::cout << T << '\n';
alpar@545
    16
  T.reset();
alpar@567
    17
  for(int i=0;i<100;i++) j+=2;
alpar@545
    18
  std::cout << T << '\n';
alpar@567
    19
  
alpar@566
    20
  return 0;
alpar@545
    21
}