-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset DbDeleteMapCmd.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/DbDeleteMapCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/DbDeleteMapCmd.cpp
index ede1b08..d38f72c 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/DbDeleteMapCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/DbDeleteMapCmd.cpp
@@ -22,13 +22,17 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2012, 2013, 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2012, 2013, 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
// Hoot
#include <hoot/core/util/Factory.h>
#include <hoot/core/cmd/BaseCommand.h>
#include <hoot/core/io/HootApiDbWriter.h>
+#include <hoot/core/util/StringUtils.h>
+
+// Qt
+#include <QElapsedTimer>
using namespace std;
@@ -50,6 +54,9 @@ public:
virtual int runSimple(QStringList& args) override
{
+ QElapsedTimer timer;
+ timer.start();
+
if (args.size() != 1)
{
cout << getHelp() << endl << endl;
@@ -58,6 +65,8 @@ public:
HootApiDbWriter().deleteMap(args[0]);
+ LOG_STATUS("Map deleted in " << StringUtils::millisecondsToDhms(timer.elapsed()) << " total.");
+
return 0;
}
};