Skip to content

v0.2.54..v0.2.55 changeset DiffCmd.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/DiffCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/DiffCmd.cpp
index fa50385..083e711 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/DiffCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/DiffCmd.cpp
@@ -36,11 +36,14 @@
 #include <hoot/core/util/MapProjector.h>
 #include <hoot/core/util/Settings.h>
 #include <hoot/core/ops/DuplicateNodeRemover.h>
+#include <hoot/core/util/StringUtils.h>
 
 using namespace std;
 
+// Qt
 #include <QDir>
 #include <QFileInfo>
+#include <QElapsedTimer>
 
 namespace hoot
 {
@@ -60,6 +63,9 @@ public:
 
   virtual int runSimple(QStringList& args) override
   {
+    QElapsedTimer timer;
+    timer.start();
+
     bool ignoreUuid = false;
     bool useDateTime = false;
     bool setErrorLimit = false;
@@ -134,6 +140,10 @@ public:
         result = 0;
     }
 
+    LOG_STATUS(
+      "Map difference calculated in " << StringUtils::millisecondsToDhms(timer.elapsed()) <<
+      " total.");
+
     return result;
   }
 
Clone this wiki locally