标签:
1、m_receiveNum++
if(time()%(60*10) == 0)
{
log(m_receiveNum);
m_receiveNum = 0;
}
2、if(time%(60*10) == 0)
{
if(time != m_lastTime || 0 == m_lastTime)
{
do();
m_lastTime = time;
}
}
3、if(0 == m_timeFlag)
{
m_timeFlag = time();
log(...);
}
else if(m_timeFlag%(60*10) == 0)
{
m_timeFlag = 0;
}
标签:
原文地址:http://www.cnblogs.com/streams/p/5774660.html