Skip to content

v0.2.54..v0.2.55 changeset ChangesetApplyCmd.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/ChangesetApplyCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/ChangesetApplyCmd.cpp
index b0fedb4..e2570c4 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/ChangesetApplyCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/ChangesetApplyCmd.cpp
@@ -32,10 +32,12 @@
 #include <hoot/core/io/OsmApiWriter.h>
 #include <hoot/core/util/Factory.h>
 #include <hoot/core/util/FileUtils.h>
+#include <hoot/core/util/StringUtils.h>
 
 // Qt
 #include <QFile>
 #include <QFileInfo>
+#include <QElapsedTimer>
 
 using namespace std;
 
@@ -57,6 +59,9 @@ public:
 
   virtual int runSimple(QStringList& args) override
   {
+    QElapsedTimer timer;
+    timer.start();
+
     bool showStats = false;
     bool showProgress = false;
     //  Check for stats flag
@@ -199,6 +204,9 @@ public:
       throw HootException("Invalid changeset file format: " + args[0]);
     }
 
+    LOG_STATUS(
+      "Changeset applied in " << StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
+
     return 0;
   }
 };
Clone this wiki locally