virtual_alarm/3

virtual_alarm(+Interval, 0:Goal, -Left)*

Activate an alarm to execute Goal in Interval seconds. If the alarm was active, bind Left to the previous value.

If Interval is 0, disable the current alarm.