author | alpar |
Thu, 11 Aug 2005 14:31:06 +0000 | |
changeset 1624 | 61cc647dac99 |
parent 1359 | 1581f961cfaa |
child 1689 | f1795dafe42c |
permissions | -rw-r--r-- |
alpar@906 | 1 |
/* -*- C++ -*- |
ladanyi@1435 | 2 |
* test/time_measure_test.cc - Part of LEMON, a generic C++ optimization library |
alpar@906 | 3 |
* |
alpar@1164 | 4 |
* Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
alpar@1359 | 5 |
* (Egervary Research Group on Combinatorial Optimization, 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 |
} |