COIN-OR::LEMON - Graph Library

Changeset 118:38e16c594a4f in lemon-0.x for src/work/alpar


Ignore:
Timestamp:
02/23/04 08:05:27 (17 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@153
Message:

Improvements in 'Timer'/'TimeStamp?'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/alpar/f_ed_ka_demo.cc

    r117 r118  
    2424  Graph G;
    2525  NodeIt s, t;
     26  Timer ts;
    2627  Graph::DynEdgeMap<int> cap(G);
    2728  readDimacsMaxFlow(std::cin, G, s, t, cap);
    2829
     30  std::cout << "loading time: " << ts << std::endl;
     31  ts.reset();
    2932  std::cout << "edmonds karp demo..." << std::endl;
    3033  Graph::DynEdgeMap<int> flow(G); //0 flow
    3134 
    3235  int ret;
    33   double pre_time=currTime();
    34   Timer ts;
     36  //  double pre_time=currTime();
    3537 
    3638  ret = maxFlow(G,flow,cap,s,t);
    37   double post_time=currTime();
    38   std::cout << "ellapsed time:" << ts << std::endl;
     39  //  double post_time=currTime();
     40  std::cout << "running time: " << ts << std::endl;
    3941
    4042  //std::cout << "maximum flow: "<< std::endl;
     
    4345  //}
    4446  //std::cout<<std::endl;
    45   std::cout << "elapsed time: " << post_time-pre_time << " sec"<< std::endl;
     47  //  std::cout<<"elapsed time: " << post_time-pre_time << " sec"<< std::endl;
    4648  std::cout << "flow value: "<< ret << std::endl;
    4749
Note: See TracChangeset for help on using the changeset viewer.