COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/test/time_measure_test.cc @ 920:2d6c8075d9d0

Last change on this file since 920:2d6c8075d9d0 was 906:17f31d280385, checked in by Alpar Juttner, 20 years ago

Copyright header added.

File size: 910 bytes
RevLine 
[906]1/* -*- C++ -*-
2 * src/test/time_measure_test.cc - Part of HUGOlib, a generic C++ optimization library
3 *
4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
5 * (Egervary Combinatorial Optimization Research Group, EGRES).
6 *
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.
10 *
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
13 * purpose.
14 *
15 */
16
[545]17#include <hugo/time_measure.h>
18
19///\file \brief Test cases for time_measure.h
20///
21///\todo To be extended
22
23
24using namespace hugo;
25
26int main()
27{
28  int j=0;
29  Timer T;
[567]30  for(int i=0;i<100;i++) j+=2;
[545]31  std::cout << T << '\n';
32  T.reset();
[567]33  for(int i=0;i<100;i++) j+=2;
[545]34  std::cout << T << '\n';
[567]35 
[566]36  return 0;
[545]37}
Note: See TracBrowser for help on using the repository browser.