-->
Page 1 of 1

Knowing timer values.

PostPosted: Thu Jan 18, 2018 9:27 am
by Scugnizzo
Hi all,
In ESP BASIC, via TIMER command it's possible to periodically run a branch. Is possible to know current timer value? In other words can I know how many milliseconds have passed from the start of the timer ?
Thank you

Re: Knowing timer values.

PostPosted: Mon Jan 22, 2018 6:09 pm
by nedudgi
Scugnizzo wrote:Hi all,
In ESP BASIC, via TIMER command it's possible to periodically run a branch. Is possible to know current timer value? In other words can I know how many milliseconds have passed from the start of the timer ?
Thank you

Take a look at the millis() function. You can save the value to a variable, and subtract later.