mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8755] Show server startup time...
Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
parent
f35be9519c
commit
0383d2fd8d
2 changed files with 7 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8754"
|
||||
#define REVISION_NR "8755"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue