-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.49..v0.2.50 changeset ConvertCmd.cpp
Garret Voltz edited this page Nov 6, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/ConvertCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/ConvertCmd.cpp
index 17a0dd9..8520f1f 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/ConvertCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/ConvertCmd.cpp
@@ -33,6 +33,7 @@
#include <hoot/core/io/OsmMapWriterFactory.h>
#include <hoot/core/util/GeometryUtils.h>
#include <hoot/core/util/ConfigOptions.h>
+#include <hoot/core/util/StringUtils.h>
// Qt
#include <QElapsedTimer>
@@ -105,17 +106,8 @@ public:
converter.setConfiguration(conf());
converter.convert(inputs, output);
- QString msg = "Convert operation completed in ";
- const qint64 timeElapsed = timer.elapsed();
- if (timeElapsed > 60000)
- {
- msg += QString::number(timeElapsed / 1000 / 60) + " total minutes";
- }
- else
- {
- msg += QString::number(timeElapsed / 1000) + " total seconds";
- }
- LOG_INFO(msg);
+ LOG_INFO(
+ "Convert operation completed in " << StringUtils::millisecondsToDhms(timer.elapsed()) << ".");
return 0;
}