Changeset 11:cf6519daa7fa in lemon-benchmark for tests/file_main.cc
- Timestamp:
- 12/11/11 11:19:39 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
tests/file_main.cc
r10 r11 1 1 #include <benchmark_tools.h> 2 #include <istream> 3 #include <lemon/error.h> 2 4 3 5 using namespace lemon; 4 6 5 int testMain(int argc, char **argv); 7 std::string instance_name; 8 9 int testMain(std::istream &input); 6 10 7 11 int main(int argc, char **argv) 8 12 { 13 if(argc!=2) exit(1); 14 15 std::ifstream input; 16 input.open((DATADIR_PATH+"/"+argv[1]).c_str()); 17 18 instance_name = argv[1]; 19 9 20 Timer ti; 10 testMain( argc, argv);21 testMain(input); 11 22 logTime("total",ti); 12 23 }
Note: See TracChangeset
for help on using the changeset viewer.