COIN-OR::LEMON - Graph Library

Changeset 1847:7cbc12e42482 in lemon-0.x for test


Ignore:
Timestamp:
12/05/05 18:03:31 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2408
Message:
  • Changed and improved Timer interface
    • several new member functions
    • reset() -> restart() renaming
    • TimeReport?: a Timer that prints a report on destruction.
  • counter.h: a tool to measure the number of streps of algorithms.
  • New documentation module for time measuring and counting.
Location:
test
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    r1833 r1847  
    1414        all_pairs_shortest_path_test \
    1515        bfs_test \
     16        counter_test \
    1617        dfs_test \
    1718        dijkstra_test \
     
    4950all_pairs_shortest_path_test_SOURCES = all_pairs_shortest_path_test.cc
    5051bfs_test_SOURCES = bfs_test.cc
     52counter_test_SOURCES = counter_test.cc
    5153dfs_test_SOURCES = dfs_test.cc
    5254dijkstra_test_SOURCES = dijkstra_test.cc
  • test/time_measure_test.cc

    r1689 r1847  
    3737  for(n=0;T.realTime()<1.0;n++) ;
    3838  std::cout << T << " (" << n << " time queries)\n";
    39   T.reset();
     39  T.restart();
    4040  while(T.realTime()<2.0) ;
    4141  std::cout << T << '\n';
Note: See TracChangeset for help on using the changeset viewer.