我正在使用计时器在 15 秒不活动时将系统置于待机模式,是否可以使用相同的计时器来跟踪待机模式,因为我需要在 1 分钟不活动时关闭系统。
time_t PlayerIdleTime;
if(_curTime - this->PlayerIdleTime >15)
{
standby();
}
else if(_curTime - this->PlayerIdleTime >60) //but it is not working
{
poweroff();
}
如何在待机模式下使用相同的计时器进行跟踪?