source:
lemon-benchmark/tests/file_main.cc
@
11:cf6519daa7fa
Last change on this file since 11:cf6519daa7fa was 11:cf6519daa7fa, checked in by , 13 years ago | |
---|---|
File size: 380 bytes |
Line | |
---|---|
1 | #include <benchmark_tools.h> |
2 | #include <istream> |
3 | #include <lemon/error.h> |
4 | |
5 | using namespace lemon; |
6 | |
7 | std::string instance_name; |
8 | |
9 | int testMain(std::istream &input); |
10 | |
11 | int main(int argc, char **argv) |
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 | |
20 | Timer ti; |
21 | testMain(input); |
22 | logTime("total",ti); |
23 | } |
Note: See TracBrowser
for help on using the repository browser.