src/test/time_measure_test.cc
author alpar
Thu, 23 Sep 2004 15:05:20 +0000
changeset 906 17f31d280385
parent 567 efaa79ee8d14
child 921 818510fa3d99
permissions -rw-r--r--
Copyright header added.
alpar@906
     1
/* -*- C++ -*-
alpar@906
     2
 * src/test/time_measure_test.cc - Part of HUGOlib, 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@545
    17
#include <hugo/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@545
    24
using namespace hugo;
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
}