Open Molorius opened 1 year ago
For context, I have a microcontroller with one continuous read-only timer. I want to use that to create a periodic timer implementation, so I want to know when exactly the new count down should begin. It's a similar idea/question as #435.
I am not sure when to start a new count down when implementing a periodic timer. The documentation currently says, "the timer will start a new count down right after the last one finishes", but I'm not sure if that's after the last successful wait or as soon as the last count down reaches zero.
Say I have a periodic timer set to 1 second. I start it:
Then do something else for 5 seconds. I then read the timer twice:
The first
block
will immediately return because the timer has finished counting down by 1 second. Should the secondblock
return immediately or wait for 1 additional second before returning?