Skip to content

v0.2.52..v0.2.53 changeset CropCmd.cpp

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/CropCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/CropCmd.cpp
index 779bac3..722105b 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/CropCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/CropCmd.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2012, 2013, 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2012, 2013, 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 // Hoot
@@ -37,6 +37,7 @@
 
 // Qt
 #include <QStringList>
+#include <QElapsedTimer>
 
 using namespace geos::geom;
 using namespace std;
@@ -64,6 +65,8 @@ public:
       throw HootException(QString("%1 takes three or four parameters.").arg(getName()));
     }
 
+    QElapsedTimer timer;
+    timer.start();
     QString in = args[0];
     QString out = args[1];
     _env.reset(new Envelope(GeometryUtils::envelopeFromConfigString(args[2])));
@@ -79,6 +82,8 @@ public:
 
     IoUtils::saveMap(map, out);
 
+    LOG_INFO("Cropping completed in: " + StringUtils::millisecondsToDhms(timer.elapsed()) + ".");
+
     return 0;
   }
 
Clone this wiki locally