*Record difftime as ms rather than s.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-06 11:22:38 -06:00
parent 587dc87404
commit 290a187592
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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
View File
@@ -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;