-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset TagCompareCmd.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/TagCompareCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/TagCompareCmd.cpp
index eb6da93..1e560e8 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/TagCompareCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/TagCompareCmd.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2014, 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2014, 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
// Hoot
@@ -30,6 +30,10 @@
#include <hoot/core/cmd/BaseCommand.h>
#include <hoot/core/schema/AttributeCoOccurrence.h>
#include <hoot/core/io/IoUtils.h>
+#include <hoot/core/util/StringUtils.h>
+
+// Qt
+#include <QElapsedTimer>
using namespace std;
@@ -51,6 +55,9 @@ public:
virtual int runSimple(QStringList& args) override
{
+ QElapsedTimer timer;
+ timer.start();
+
bool tableFormat = true;
AttributeCoOccurrence cooccurrence;
@@ -80,6 +87,9 @@ public:
else
cout << cooccurrence.printList();
+ LOG_STATUS(
+ "Tags compared in " << StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
+
return 0;
}
};