show total running time when extracting
This commit is contained in:
parent
f4431ed837
commit
0f4207f85e
@ -39,6 +39,8 @@ typedef BaseConfiguration ExtractorConfiguration;
|
|||||||
ExtractorCallbacks * extractCallBacks;
|
ExtractorCallbacks * extractCallBacks;
|
||||||
|
|
||||||
int main (int argc, char *argv[]) {
|
int main (int argc, char *argv[]) {
|
||||||
|
double earliestTime = get_timestamp();
|
||||||
|
|
||||||
if(argc < 2) {
|
if(argc < 2) {
|
||||||
ERR("usage: \n" << argv[0] << " <file.osm/.osm.bz2/.osm.pbf> [<profile.lua>]");
|
ERR("usage: \n" << argv[0] << " <file.osm/.osm.bz2/.osm.pbf> [<profile.lua>]");
|
||||||
}
|
}
|
||||||
@ -113,7 +115,8 @@ int main (int argc, char *argv[]) {
|
|||||||
stringMap.clear();
|
stringMap.clear();
|
||||||
delete parser;
|
delete parser;
|
||||||
delete extractCallBacks;
|
delete extractCallBacks;
|
||||||
INFO("finished");
|
INFO("finished after " << get_timestamp() - earliestTime << "s");
|
||||||
|
|
||||||
std::cout << "\nRun:\n"
|
std::cout << "\nRun:\n"
|
||||||
"./osrm-prepare " << outputFileName << " " << restrictionsFileName << std::endl;
|
"./osrm-prepare " << outputFileName << " " << restrictionsFileName << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user