v0.2.54..v0.2.55 changeset TagInfoCmd.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/TagInfoCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/TagInfoCmd.cpp
index 749ff14..5edd682 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/TagInfoCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/TagInfoCmd.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
@@ -30,9 +30,11 @@
#include <hoot/core/cmd/BaseCommand.h>
#include <hoot/core/util/Settings.h>
#include <hoot/core/schema/TagInfo.h>
+#include <hoot/core/util/StringUtils.h>
-// QT
+// Qt
#include <QDir>
+#include <QElapsedTimer>
using namespace std;
@@ -53,6 +55,9 @@ public:
virtual int runSimple(QStringList& args) override
{
+ QElapsedTimer timer;
+ timer.start();
+
if (args.size() < 1)
{
cout << getHelp() << endl << endl;
@@ -119,6 +124,10 @@ public:
TagInfo tagInfo(tagValuesPerKeyLimit, keys, keysOnly, caseSensitive, exactKeyMatch);
cout << tagInfo.getInfo(inputs) << endl;
+ LOG_STATUS(
+ "Tag information collected in " << StringUtils::millisecondsToDhms(timer.elapsed()) <<
+ " total.");
+
return 0;
}
};