Given the R3-GUI code below, is there a way to access how much time is left in the timer? The timer ID is returned by set-timer
but I am not sure if there is anything I can do with it?
set-timer [print "done"] 60
In other words, what I am looking for in a fake code example:
>> get-timer/time-remaining timer-id
== 0:0:21
The answer can be found by looking at the source of
set-timer
If the timer is still going, it will be in the
guie
object.And getting the date value will look like this:
If the timer has finished, do-events clears it out. If events are not being run, then the timer will stay even after the time has run out.