-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset ExtentCmd.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/ExtentCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/ExtentCmd.cpp
index 7fa663e..5f7b81d 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/ExtentCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/ExtentCmd.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
// Hoot
@@ -32,6 +32,10 @@
#include <hoot/core/visitors/CalculateMapBoundsVisitor.h>
#include <hoot/core/util/GeometryUtils.h>
#include <hoot/core/io/IoUtils.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();
+
if (args.size() < 1 || args.size() > 2)
{
cout << getHelp() << endl << endl;
@@ -82,6 +89,9 @@ public:
cout << bounds << endl;
}
+ LOG_STATUS(
+ "Map extent calculated in " << StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
+
return 0;
}