Changeset 209:765619b7cbb2 in lemon for test/time_measure_test.cc
- Timestamp:
- 07/13/08 20:51:02 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/time_measure_test.cc
r171 r209 1 /* -*- C++-*-1 /* -*- mode: C++; indent-tabs-mode: nil; -*- 2 2 * 3 * This file is a part of LEMON, a generic C++ optimization library 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 5 * Copyright (C) 2003-2008 … … 21 21 using namespace lemon; 22 22 23 void f() 23 void f() 24 24 { 25 25 double d=0; … … 28 28 } 29 29 30 void g() 30 void g() 31 31 { 32 32 static Timer T; 33 33 34 34 for(int i=0;i<1000;i++) 35 35 TimeStamp x(T); … … 50 50 std::cout << t << " (" << n << " tests)\n"; 51 51 std::cout << "Total: " << full << "\n"; 52 52 53 53 t=runningTimeTest(g,1,&n,&full); 54 54 std::cout << t << " (" << n << " tests)\n"; 55 55 std::cout << "Total: " << full << "\n"; 56 56 57 57 return 0; 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.