timer instead of pause
Posted: Sun Mar 21, 2021 4:03 am
timer0 1000, ticker
duration=1 * 60 * 60 ' times ticker seconds = 1 hour
wait
ticker:
if duration >= 0 then
duration = duration -1
else
gosub timedout
endif
return
timedout:
wlog "timed out"
return
Thanks Electroguard
duration=1 * 60 * 60 ' times ticker seconds = 1 hour
wait
ticker:
if duration >= 0 then
duration = duration -1
else
gosub timedout
endif
return
timedout:
wlog "timed out"
return
Thanks Electroguard