alpar@906: /* -*- C++ -*- alpar@921: * src/test/time_measure_test.cc - Part of LEMON, a generic C++ optimization library alpar@906: * alpar@906: * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport alpar@906: * (Egervary Combinatorial Optimization Research Group, 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: int j=0; alpar@545: Timer T; alpar@567: for(int i=0;i<100;i++) j+=2; alpar@545: std::cout << T << '\n'; alpar@545: T.reset(); alpar@567: for(int i=0;i<100;i++) j+=2; alpar@545: std::cout << T << '\n'; alpar@567: alpar@566: return 0; alpar@545: }