-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset SortCmd.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/SortCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/SortCmd.cpp
index d5fb939..307151c 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/SortCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/SortCmd.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
@@ -36,6 +36,10 @@
#include <hoot/core/io/OsmMapWriterFactory.h>
#include <hoot/core/util/ConfigOptions.h>
#include <hoot/core/io/IoUtils.h>
+#include <hoot/core/util/StringUtils.h>
+
+// Qt
+#include <QElapsedTimer>
namespace hoot
{
@@ -54,6 +58,9 @@ public:
virtual int runSimple(QStringList& args) override
{
+ QElapsedTimer timer;
+ timer.start();
+
if (args.size() != 2)
{
std::cout << getHelp() << std::endl << std::endl;
@@ -81,6 +88,8 @@ public:
_sortInMemory(input, output);
}
+ LOG_STATUS("Map sorted in " << StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
+
return 0;
}