mirror of https://github.com/CGAL/cgal
add timer for shortest path queries
This commit is contained in:
parent
7bf8ec26b3
commit
e6077bb7b0
|
|
@ -339,9 +339,10 @@ bool Scene_polyhedron_shortest_path_item::run_point_select(const Ray_3& ray)
|
|||
|
||||
m_messages->information(tr("Computing shortest path polyline..."));
|
||||
|
||||
QTime time;
|
||||
time.start();
|
||||
m_shortestPaths->shortest_path_points_to_source_points(faceLocation.first, faceLocation.second, std::back_inserter(polylines->polylines.back()));
|
||||
|
||||
m_messages->information(tr("Done"));
|
||||
std::cout << "ok (" << time.elapsed() << " ms)" << std::endl;
|
||||
|
||||
polylines->setName(tr("%1 (shortest path)").arg(polyhedron_item()->name()));
|
||||
polylines->setColor(Qt::red);
|
||||
|
|
|
|||
Loading…
Reference in New Issue