Skip to content

v0.2.54..v0.2.55 changeset CountCmd.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/CountCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/CountCmd.cpp
index a199ac8..6d17c67 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/CountCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/CountCmd.cpp
@@ -70,6 +70,9 @@ public:
 
   virtual int runSimple(QStringList& args) override
   {
+    QElapsedTimer timer;
+    timer.start();
+
     if (args.size() < 1 || args.size() > 3)
     {
       LOG_VAR(args);
@@ -98,9 +101,6 @@ public:
       }
     }
 
-    QElapsedTimer timer;
-    timer.start();
-
     QString criterionClassName = "";
     if (args.size() > 1)
     {
@@ -132,7 +132,7 @@ public:
     }
 
     LOG_STATUS(
-      "Counting finished in " + StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
+      "Features counted in " << StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
 
     //putting a preceding endline in here since PROGRESS_INFO doesn't clear itself out at the end
     QString displayStr = "Total count ";
Clone this wiki locally