Commit bdc59c26 authored by Valentin Platzgummer's avatar Valentin Platzgummer

time measurement added to calcNextPhase() in WimaController

parent b08e6619
This diff is collapsed.
This diff is collapsed.
......@@ -358,10 +358,7 @@ void TransectStyleComplexItem::_rebuildTransects(void)
return;
}
auto startTime = std::chrono::high_resolution_clock::now();
_rebuildTransectsPhase1();
auto delta = std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::high_resolution_clock::now() - startTime).count();
qWarning() << "TransectStyleComplexItem::_rebuildTransects(): time: " << delta << " us";
_rebuildTransectsPhase1();
if (_followTerrain) {
// Query the terrain data. Once available terrain heights will be calculated
......
......@@ -582,6 +582,7 @@ bool WimaController::fetchContainerData()
bool WimaController::calcNextPhase()
{
auto start = std::chrono::high_resolution_clock::now();
if (_missionItems.count() < 1) {
_startWaypointIndex = 0;
_endWaypointIndex = 0;
......@@ -802,6 +803,9 @@ bool WimaController::calcNextPhase()
updateCurrentPath();
emit currentMissionItemsChanged();
qWarning() << "WimaController::calcNextPhase() exec time: "
<< std::chrono::duration_cast<std::chrono::microseconds>(
std::chrono::high_resolution_clock::now() - start).count() << " us";
return true;
}
......
......@@ -9,7 +9,7 @@
#include "WimaJoinedAreaData.h"
#include "MissionItem.h"
class WimaPlanData : QObject
class WimaPlanData : public QObject
{
Q_OBJECT
public:
......
......@@ -705,7 +705,7 @@ void WimaPlaner::setInteractive()
QSharedPointer<WimaPlanData> WimaPlaner::toPlanData()
{
//WimaPlanData *data = new WimaPlanData(nullptr);
QSharedPointer<WimaPlanData> planData;
QSharedPointer<WimaPlanData> planData(new WimaPlanData());
// store areas
planData->append(WimaMeasurementAreaData(_measurementArea));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment