Sunday, 11 August 2013

REBOL3 - How do I access the value of a timer once set?

REBOL3 - How do I access the value of a timer once set?

Given the 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

No comments:

Post a Comment