The first parameter of runningTimeTest became const.
It is necessary to enable to pass of temporary objects.
2 * test/time_measure_test.cc - Part of LEMON, a generic C++ optimization library
4 * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
5 * (Egervary Research Group on Combinatorial Optimization, EGRES).
7 * Permission to use, modify and distribute this software is granted
8 * provided that this copyright notice appears in all copies. For
9 * precise terms see the accompanying LICENSE file.
11 * This software is provided "AS IS" with no warranty of any kind,
12 * express or implied, and with no claim as to its suitability for any
17 #include <lemon/time_measure.h>
19 ///\file \brief Test cases for time_measure.h
21 ///\todo To be extended
24 using namespace lemon;
29 for(int i=0;i<10000;i++)
37 for(n=0;T.realTime()<1.0;n++) ;
38 std::cout << T << " (" << n << " time queries)\n";
40 while(T.realTime()<2.0) ;
41 std::cout << T << '\n';
43 TimeStamp t=runningTimeTest(f,1,&n,&full);
44 std::cout << t << " (" << n << " tests)\n";
45 std::cout << "Total: " << full << "\n";