diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/IsSortedCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/IsSortedCmd.cpp
index a711478..97533fe 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/IsSortedCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/IsSortedCmd.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
// Hoot
@@ -31,10 +31,12 @@
#include <hoot/core/io/OsmPbfReader.h>
#include <hoot/core/io/OsmMapReaderFactory.h>
#include <hoot/core/visitors/IsSortedVisitor.h>
+#include <hoot/core/util/StringUtils.h>
// Qt
#include <QFile>
#include <QFileInfo>
+#include <QElapsedTimer>
namespace hoot
{
@@ -54,6 +56,9 @@ public:
virtual int runSimple(QStringList& args) override
{
+ QElapsedTimer timer;
+ timer.start();
+
if (args.size() != 1)
{
std::cout << getHelp() << std::endl << std::endl;
@@ -110,6 +115,9 @@ public:
std::cout << input << " is not sorted." << std::endl;
}
+ LOG_STATUS(
+ "Map sorted check ran in " << StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
+
return 0;
}
};