sleep[]
looks a bit unsatisfying, as the card is not interactive as it waits, so the label isn’t that readable.
I have tried this:
Make a textfield to store a timer (here I used “timer”) initially set to 0. You can put it on another card if you want to hide it out the way.
Card:
on view do
timer.text:timer.text+1
if (timer.text<0) & ((10%timer.text)=0)
display.text:display.text - 1
end
go[card]
end
Button:
on click do
timer.text:(display.text+1)*-10
end
Edit: I was late to the party. Using sys.now as suggested above sounds like a more suitable approach :)