removing excessive use of time stamps
This commit is contained in:
parent
61a8b6820f
commit
1de5496e9a
@ -103,21 +103,21 @@ public:
|
|||||||
|
|
||||||
_Coordinate startCoord(lat1, lon1);
|
_Coordinate startCoord(lat1, lon1);
|
||||||
_Coordinate targetCoord(lat2, lon2);
|
_Coordinate targetCoord(lat2, lon2);
|
||||||
double timestamp2 = get_timestamp();
|
// double timestamp2 = get_timestamp();
|
||||||
//cout << "coordinates in " << timestamp2 - timestamp << "s" << endl;
|
//cout << "coordinates in " << timestamp2 - timestamp << "s" << endl;
|
||||||
|
|
||||||
|
|
||||||
vector<NodeID> * path = new vector<NodeID>();
|
vector<NodeID> * path = new vector<NodeID>();
|
||||||
PhantomNodes * phantomNodes = new PhantomNodes();
|
PhantomNodes * phantomNodes = new PhantomNodes();
|
||||||
timestamp = get_timestamp();
|
// timestamp = get_timestamp();
|
||||||
sEngine->FindRoutingStarts(startCoord, targetCoord, phantomNodes);
|
sEngine->FindRoutingStarts(startCoord, targetCoord, phantomNodes);
|
||||||
timestamp2 = get_timestamp();
|
// timestamp2 = get_timestamp();
|
||||||
//cout << "routing starts in " << timestamp2 - timestamp << "s" << endl;
|
//cout << "routing starts in " << timestamp2 - timestamp << "s" << endl;
|
||||||
timestamp = get_timestamp();
|
// timestamp = get_timestamp();
|
||||||
unsigned int distance = sEngine->ComputeRoute(phantomNodes, path, startCoord, targetCoord);
|
unsigned int distance = sEngine->ComputeRoute(phantomNodes, path, startCoord, targetCoord);
|
||||||
timestamp2 = get_timestamp();
|
// timestamp2 = get_timestamp();
|
||||||
//cout << "shortest path in " << timestamp2 - timestamp << "s" << endl;
|
//cout << "shortest path in " << timestamp2 - timestamp << "s" << endl;
|
||||||
timestamp = get_timestamp();
|
// timestamp = get_timestamp();
|
||||||
rep.status = reply::ok;
|
rep.status = reply::ok;
|
||||||
|
|
||||||
string tmp;
|
string tmp;
|
||||||
@ -192,7 +192,7 @@ public:
|
|||||||
|
|
||||||
delete path;
|
delete path;
|
||||||
delete phantomNodes;
|
delete phantomNodes;
|
||||||
timestamp2 = get_timestamp();
|
// timestamp2 = get_timestamp();
|
||||||
//cout << "description in " << timestamp2 - timestamp << "s" << endl;
|
//cout << "description in " << timestamp2 - timestamp << "s" << endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user