Skip to content

v0.2.54..v0.2.55 changeset CumulativeConflateCmd.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-rnd/src/main/cpp/hoot/rnd/cmd/CumulativeConflateCmd.cpp b/hoot-rnd/src/main/cpp/hoot/rnd/cmd/CumulativeConflateCmd.cpp
index e04b6b0..d6413d5 100644
--- a/hoot-rnd/src/main/cpp/hoot/rnd/cmd/CumulativeConflateCmd.cpp
+++ b/hoot-rnd/src/main/cpp/hoot/rnd/cmd/CumulativeConflateCmd.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 // Hoot
@@ -30,6 +30,10 @@
 #include <hoot/core/util/Factory.h>
 #include <hoot/core/util/Log.h>
 #include <hoot/rnd/conflate/CumulativeConflator.h>
+#include <hoot/core/util/StringUtils.h>
+
+// Qt
+#include <QElapsedTimer>
 
 using namespace std;
 
@@ -53,6 +57,9 @@ public:
 
   virtual int runSimple(QStringList& args) override
   {
+    QElapsedTimer timer;
+    timer.start();
+
     // doesn't work with stats yet
     if (args.contains("--stats"))
     {
@@ -74,6 +81,9 @@ public:
 
     CumulativeConflator::conflate(inputs, output);
 
+    LOG_STATUS(
+      "Conflation ran in " << StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
+
     return 0;
   }
 };
Clone this wiki locally