src/test/time_measure_test.cc
author marci
Fri, 08 Oct 2004 13:07:51 +0000
changeset 941 186aa53d2802
parent 906 17f31d280385
child 1069 7b81a36809c6
permissions -rw-r--r--
Suurballe and MinCostFlow classes are now able to increase the flow 1 by 1 with
this->augment()
alpar@906
     1
/* -*- C++ -*-
alpar@921
     2
 * src/test/time_measure_test.cc - Part of LEMON, a generic C++ optimization library
alpar@906
     3
 *
alpar@906
     4
 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@906
     5
 * (Egervary Combinatorial Optimization Research Group, EGRES).
alpar@906
     6
 *
alpar@906
     7
 * Permission to use, modify and distribute this software is granted
alpar@906
     8
 * provided that this copyright notice appears in all copies. For
alpar@906
     9
 * precise terms see the accompanying LICENSE file.
alpar@906
    10
 *
alpar@906
    11
 * This software is provided "AS IS" with no warranty of any kind,
alpar@906
    12
 * express or implied, and with no claim as to its suitability for any
alpar@906
    13
 * purpose.
alpar@906
    14
 *
alpar@906
    15
 */
alpar@906
    16
alpar@921
    17
#include <lemon/time_measure.h>
alpar@545
    18
alpar@545
    19
///\file \brief Test cases for time_measure.h
alpar@545
    20
///
alpar@545
    21
///\todo To be extended
alpar@545
    22
alpar@545
    23
alpar@921
    24
using namespace lemon;
alpar@545
    25
alpar@545
    26
int main()
alpar@545
    27
{
alpar@545
    28
  int j=0;
alpar@545
    29
  Timer T;
alpar@567
    30
  for(int i=0;i<100;i++) j+=2;
alpar@545
    31
  std::cout << T << '\n';
alpar@545
    32
  T.reset();
alpar@567
    33
  for(int i=0;i<100;i++) j+=2;
alpar@545
    34
  std::cout << T << '\n';
alpar@567
    35
  
alpar@566
    36
  return 0;
alpar@545
    37
}