aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/mmaps_generator/PathGenerator.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/mmaps_generator/PathGenerator.cpp b/src/tools/mmaps_generator/PathGenerator.cpp
index 45d0aff958c..4da90fd153a 100644
--- a/src/tools/mmaps_generator/PathGenerator.cpp
+++ b/src/tools/mmaps_generator/PathGenerator.cpp
@@ -18,6 +18,7 @@
#include "PathCommon.h"
#include "MapBuilder.h"
+#include "Timer.h"
using namespace MMAP;
@@ -280,6 +281,7 @@ int main(int argc, char** argv)
MapBuilder builder(maxAngle, skipLiquid, skipContinents, skipJunkMaps,
skipBattlegrounds, debugOutput, bigBaseUnit, offMeshInputPath);
+ uint32 start = getMSTime();
if (file)
builder.buildMeshFromFile(file);
else if (tileX > -1 && tileY > -1 && mapnum >= 0)
@@ -289,5 +291,7 @@ int main(int argc, char** argv)
else
builder.buildAllMaps(threads);
- return silent ? 1 : finish("Movemap build is complete!", 1);
+ if (!silent)
+ printf("Finished. MMAPS were built in %u ms!", GetMSTimeDiffToNow(start));
+ return 1;
}