src/test/time_measure_test.cc
author alpar
Tue, 11 Jan 2005 09:04:08 +0000
changeset 1069 7b81a36809c6
parent 921 818510fa3d99
child 1164 80bb73097736
permissions -rw-r--r--
- Minor correction in time_measure.h
- A bit more meaningful test in time_measure_test.cc
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
  Timer T;
alpar@1069
    29
  while(T.getRealTime()<1.0) ;
alpar@545
    30
  std::cout << T << '\n';
alpar@545
    31
  T.reset();
alpar@1069
    32
  while(T.getRealTime()<2.0) ;
alpar@545
    33
  std::cout << T << '\n';
alpar@567
    34
  
alpar@566
    35
  return 0;
alpar@545
    36
}