alpar@906: /* -*- C++ -*- alpar@921: * src/test/time_measure_test.cc - Part of LEMON, a generic C++ optimization library alpar@906: * alpar@1164: * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport alpar@1359: * (Egervary Research Group on Combinatorial Optimization, EGRES). alpar@906: * alpar@906: * Permission to use, modify and distribute this software is granted alpar@906: * provided that this copyright notice appears in all copies. For alpar@906: * precise terms see the accompanying LICENSE file. alpar@906: * alpar@906: * This software is provided "AS IS" with no warranty of any kind, alpar@906: * express or implied, and with no claim as to its suitability for any alpar@906: * purpose. alpar@906: * alpar@906: */ alpar@906: alpar@921: #include alpar@545: alpar@545: ///\file \brief Test cases for time_measure.h alpar@545: /// alpar@545: ///\todo To be extended alpar@545: alpar@545: alpar@921: using namespace lemon; alpar@545: alpar@545: int main() alpar@545: { alpar@545: Timer T; alpar@1069: while(T.getRealTime()<1.0) ; alpar@545: std::cout << T << '\n'; alpar@545: T.reset(); alpar@1069: while(T.getRealTime()<2.0) ; alpar@545: std::cout << T << '\n'; alpar@567: alpar@566: return 0; alpar@545: }