shawnnason
Programmer
All -
I want to see how long it's been since I started a timer until an event happens. Is there way to do something along the lines of:
Or do I need to do something crazy like make my interval really small, then each time the interval expires add to a counter, then report the counter?
I know there is no such thing as timleft for a timer.
- Shawn
I want to see how long it's been since I started a timer until an event happens. Is there way to do something along the lines of:
Code:
timer1.interval = 10000
timer1.enabled = true
<other stuff happens>
timer1.enabled = false
leftovertime = timer1.timeleft
text1.text (leftovertime)
Or do I need to do something crazy like make my interval really small, then each time the interval expires add to a counter, then report the counter?
I know there is no such thing as timleft for a timer.
- Shawn