v0.2.54..v0.2.55 changeset ImplicitTypeTaggingRulesCmd.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/ImplicitTypeTaggingRulesCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/ImplicitTypeTaggingRulesCmd.cpp
index d27d6b6..fd30f02 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/ImplicitTypeTaggingRulesCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/ImplicitTypeTaggingRulesCmd.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
// Hoot
@@ -31,6 +31,10 @@
#include <hoot/core/schema/ImplicitTagRawRulesDeriver.h>
#include <hoot/core/schema/ImplicitTagRulesDatabaseDeriver.h>
#include <hoot/core/io/ImplicitTagRulesSqliteReader.h>
+#include <hoot/core/util/StringUtils.h>
+
+// Qt
+#include <QElapsedTimer>
namespace hoot
{
@@ -48,6 +52,9 @@ public:
virtual int runSimple(QStringList& args) override
{
+ QElapsedTimer timer;
+ timer.start();
+
if (args.contains("--create-raw"))
{
args.removeAt(args.indexOf("--create-raw"));
@@ -100,6 +107,10 @@ public:
return 1;
}
+ LOG_STATUS(
+ "Implicit type tagging rules generated in " <<
+ StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
+
return 0;
}
};