3条回答 默认 最新
threenewbee 2023-07-25 08:36关注伪代码:
timestart = 当前时间 while (1) { a, b = 从通讯获取 if (a<b && 当前时间-timestart<5分钟) timestart = 当前时间 else if (当前时间-timestart>5分钟) 处理 }本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报解决 1无用
伪代码:
timestart = 当前时间
while (1)
{
a, b = 从通讯获取
if (a<b && 当前时间-timestart<5分钟)
timestart = 当前时间
else if (当前时间-timestart>5分钟)
处理
}