diff options
author | Subv <s.v.h21@hotmail.com> | 2012-08-25 12:40:04 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-08-25 12:40:04 -0500 |
commit | c44601379179ad368bb2c80d371232c48f366f90 (patch) | |
tree | aab7c7080f0fda2747b72434279cd35a5989c5e4 /src | |
parent | 35437149e210ed713b04e01bf7607aa1475e158f (diff) |
Core/Mmaps: Added elapsed time to the mmaps_generator
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/mmaps_generator/PathGenerator.cpp | 6 |
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; } |