From ce36d10879c5ed2aa83e9d4c675114cf78a11db5 Mon Sep 17 00:00:00 2001 From: IntelligentQuantum Date: Sun, 8 May 2022 13:20:25 +0430 Subject: [PATCH] feat(Tools/MMAPs): Output the time spent in a human readable format (#11574) * . * . --- src/tools/mmaps_generator/PathGenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/mmaps_generator/PathGenerator.cpp b/src/tools/mmaps_generator/PathGenerator.cpp index 469ff7984..5407d99c0 100644 --- a/src/tools/mmaps_generator/PathGenerator.cpp +++ b/src/tools/mmaps_generator/PathGenerator.cpp @@ -20,6 +20,7 @@ #include "Timer.h" #include "DBCFileLoader.h" #include "PathCommon.h" +#include "Util.h" #include #include @@ -341,6 +342,6 @@ int main(int argc, char** argv) builder.buildMaps({}); if (!silent) - printf("Finished. MMAPS were built in %u ms!\n", GetMSTimeDiffToNow(start)); + printf("Finished. MMAPS were built in %s\n", secsToTimeString(GetMSTimeDiffToNow(start) / 1000).c_str()); return 0; }