[8755] Show server startup time...

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Ambal 2009-10-31 10:21:57 +02:00
parent f35be9519c
commit 0383d2fd8d
2 changed files with 7 additions and 1 deletions

View file

@ -1106,6 +1106,9 @@ void World::SetInitialWorldSettings()
///- Initialize the random number generator
srand((unsigned int)time(NULL));
///- Time server startup
uint32 uStartTime = getMSTime();
///- Initialize config settings
LoadConfigSettings();
@ -1508,6 +1511,9 @@ void World::SetInitialWorldSettings()
m_timers[WUPDATE_EVENTS].SetInterval(nextGameEvent); //depend on next event
sLog.outString( "WORLD: World initialized" );
uint32 uStartInterval = getMSTimeDiff(uStartTime, getMSTime());
sLog.outString( "SERVER STARTUP TIME: %i minutes %i seconds", uStartInterval / 60000, (uStartInterval % 60000) / 1000 );
}
void World::DetectDBCLang()

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8754"
#define REVISION_NR "8755"
#endif // __REVISION_NR_H__