From fd694cd2324a7e2d61d833a78024b68fd3605053 Mon Sep 17 00:00:00 2001 From: leak Date: Sun, 19 Dec 2010 17:06:33 +0100 Subject: Streamlining loading functions for server startup - Added a couple of timer outputs - Improved code consistency between loading functions - Progess bars should look and behave similar on all OS now (sLog.outString() is not needed anymore to replace the progress bar in log files) --HG-- branch : trunk --- src/server/shared/Utilities/Timer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/server/shared/Utilities/Timer.h') diff --git a/src/server/shared/Utilities/Timer.h b/src/server/shared/Utilities/Timer.h index 28c7fcd999b..bae864bef02 100755 --- a/src/server/shared/Utilities/Timer.h +++ b/src/server/shared/Utilities/Timer.h @@ -37,6 +37,11 @@ inline uint32 getMSTimeDiff(uint32 oldMSTime, uint32 newMSTime) return newMSTime - oldMSTime; } +inline uint32 GetMSTimeDiffToNow(uint32 oldMSTime) +{ + return getMSTimeDiff(oldMSTime, getMSTime()); +} + struct IntervalTimer { public: -- cgit v1.2.3