-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset ScoreMatchesDiffCmd.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-rnd/src/main/cpp/hoot/rnd/cmd/ScoreMatchesDiffCmd.cpp b/hoot-rnd/src/main/cpp/hoot/rnd/cmd/ScoreMatchesDiffCmd.cpp
index e484d75..86c19be 100644
--- a/hoot-rnd/src/main/cpp/hoot/rnd/cmd/ScoreMatchesDiffCmd.cpp
+++ b/hoot-rnd/src/main/cpp/hoot/rnd/cmd/ScoreMatchesDiffCmd.cpp
@@ -22,13 +22,17 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
// Hoot
#include <hoot/core/util/Factory.h>
#include <hoot/core/cmd/BaseCommand.h>
#include <hoot/rnd/conflate/matching/ScoreMatchesDiff.h>
+#include <hoot/core/util/StringUtils.h>
+
+// Qt
+#include <QElapsedTimer>
namespace hoot
{
@@ -53,6 +57,9 @@ public:
virtual int runSimple(QStringList& args) override
{
+ QElapsedTimer timer;
+ timer.start();
+
if (args.size() != 3)
{
std::cout << getHelp() << std::endl << std::endl;
@@ -71,6 +78,10 @@ public:
return 1;
}
+ LOG_STATUS(
+ "Matches difference calculated in " << StringUtils::millisecondsToDhms(timer.elapsed()) <<
+ " total.");
+
return 0;
}
};