Timer & TimerStart - Forum

Forum Navigation
You need to log in to create posts and topics.

Timer & TimerStart

The Timer object, as we know, will run action commands at a set time interval. You can assign a variable for the elapsed time as well. Now, as I understand it the set interval has to elapse once before the actions are run, right? Is there no way to run the actions at timer start and then run again at the interval? I bring this up because it all ties into the elapsed time variable. How do I get a real time elapse reading?

@pauljonestindall

Is there no way to run the actions at timer start and then run again at the interval?

a) For the Timer object ... Start >>> Wait for "TimerStart" action

b) Timer Interval

GoSub "TimerIntervalForTimer1"

c) Event (in PushButton etc.) that starts the timer

TimerStart "Timer1" "2000"
GoSub "TimerIntervalForTimer1"

d) Subroutine TimerIntervalForTimer1 ...

:TimerIntervalForTimer1
... commands for interval processing go here
Return