I have a general question on how software timers are working.
As I understood the timers are executed in a separate thread. So they are running in parallel with the loop()?
Will the loop code be halted when a timer is triggered, or will it run in “parallel”?
Or is the timer always be executed at the beginning or the end of a loop()?
Can I use SINGLE_THREADED_BLOCK() to control when in the loop a timer can be executed and not?
First I have used a simple if statement in my code to do something every some seconds
if (time_stamp < millis()) and there I had the control over the point in time in my code.
With the software timers it seems like I am loosing this and need to handle this somehow different. Is this correct?