Skip to content

v0.2.54..v0.2.55 changeset RubberSheetCmd.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/RubberSheetCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/RubberSheetCmd.cpp
index 0e39df3..4cd4002 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/RubberSheetCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/RubberSheetCmd.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
@@ -31,6 +31,10 @@
 #include <hoot/core/algorithms/rubber-sheet/RubberSheeter.h>
 #include <hoot/core/algorithms/rubber-sheet/RubberSheetDeriver.h>
 #include <hoot/core/algorithms/rubber-sheet/RubberSheetApplier.h>
+#include <hoot/core/util/StringUtils.h>
+
+// Qt
+#include <QElapsedTimer>
 
 namespace hoot
 {
@@ -49,6 +53,9 @@ public:
 
   virtual int runSimple(QStringList& args) override
   {
+    QElapsedTimer timer;
+    timer.start();
+
     if (args.contains("--derive"))
     {
       args.removeAt(args.indexOf("--derive"));
@@ -102,6 +109,10 @@ public:
       RubberSheeter().rubberSheet(args[0], args[1], args[2]);
     }
 
+    LOG_STATUS(
+      "Rubber sheeting operation ran in " << StringUtils::millisecondsToDhms(timer.elapsed()) <<
+      " total.");
+
     return 0;
   }
 };
Clone this wiki locally