*Record difftime as ms rather than s.
--HG-- branch : trunk
This commit is contained in:
+3
-3
@@ -1424,8 +1424,8 @@ void World::RecordTimeDiff(const char *text)
|
||||
return;
|
||||
sLog.outDebugInLine("Difftime ");
|
||||
sLog.outDebugInLine(text);
|
||||
time_t thisTime = time(NULL);
|
||||
sLog.outDebug(": %u.", uint32(thisTime - m_currentTime));
|
||||
uint32 thisTime = getMSTime();
|
||||
sLog.outDebug(": %u.", getMSTimeDiff(m_currentTime, thisTime));
|
||||
m_currentTime = thisTime;
|
||||
}
|
||||
|
||||
@@ -1440,7 +1440,7 @@ void World::Update(time_t diff)
|
||||
sLog.outString("Update time diff: %u. Players online: %u.", m_updateTimeSum / m_updateTimeCount, GetActiveSessionCount());
|
||||
m_updateTimeSum = m_updateTime;
|
||||
m_updateTimeCount = 1;
|
||||
m_currentTime = time(NULL);
|
||||
m_currentTime = getMSTime();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
+1
-1
@@ -538,7 +538,7 @@ class World
|
||||
uint32 mail_timer_expires;
|
||||
uint32 m_updateTime, m_updateTimeSum;
|
||||
uint32 m_updateTimeCount;
|
||||
time_t m_currentTime;
|
||||
uint32 m_currentTime;
|
||||
void RecordTimeDiff(const char * text);
|
||||
|
||||
typedef UNORDERED_MAP<uint32, Weather*> WeatherMap;
|
||||
|
||||
Reference in New Issue
Block a user