*Add console command "difftime" to change the interval to record diff time in log.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-01 19:32:44 -06:00
parent 95d6015cb0
commit 704be96b4c
4 changed files with 23 additions and 0 deletions

View File

@@ -272,6 +272,26 @@ bool ChatHandler::HandleServerSetLogLevelCommand(const char *args)
return true;
}
/// set diff time record interval
bool ChatHandler::HandleServerSetDiffTimeCommand(const char *args)
{
if(!*args)
return false;
char *NewTimeStr = strtok((char*)args, " ");
if(!NewTimeStr)
return false;
int32 NewTime =atoi(NewTimeStr);
if(NewTime < 0)
return false;
sWorld.SetRecordDiffInterval(NewTime);
printf( "Record diff every %u ms\n", NewTime);
return true;
}
/// @}
#ifdef linux