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;
}
时间: 2024-10-25 03:04:50