test/time_measure_test.cc
changeset 1435 8e85e6bbefdf
parent 1359 1581f961cfaa
child 1689 f1795dafe42c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/time_measure_test.cc	Mon May 23 04:48:14 2005 +0000
     1.3 @@ -0,0 +1,36 @@
     1.4 +/* -*- C++ -*-
     1.5 + * test/time_measure_test.cc - Part of LEMON, a generic C++ optimization library
     1.6 + *
     1.7 + * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     1.8 + * (Egervary Research Group on Combinatorial Optimization, EGRES).
     1.9 + *
    1.10 + * Permission to use, modify and distribute this software is granted
    1.11 + * provided that this copyright notice appears in all copies. For
    1.12 + * precise terms see the accompanying LICENSE file.
    1.13 + *
    1.14 + * This software is provided "AS IS" with no warranty of any kind,
    1.15 + * express or implied, and with no claim as to its suitability for any
    1.16 + * purpose.
    1.17 + *
    1.18 + */
    1.19 +
    1.20 +#include <lemon/time_measure.h>
    1.21 +
    1.22 +///\file \brief Test cases for time_measure.h
    1.23 +///
    1.24 +///\todo To be extended
    1.25 +
    1.26 +
    1.27 +using namespace lemon;
    1.28 +
    1.29 +int main()
    1.30 +{
    1.31 +  Timer T;
    1.32 +  while(T.getRealTime()<1.0) ;
    1.33 +  std::cout << T << '\n';
    1.34 +  T.reset();
    1.35 +  while(T.getRealTime()<2.0) ;
    1.36 +  std::cout << T << '\n';
    1.37 +  
    1.38 +  return 0;
    1.39 +}