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