I have a routine that I need to execute every second, with low accumulated time errors (in 1 hour should fire 3600 times). The routine takes a varying 100 to 300ms (roughly) to exectue.
What is the most reasonable approach? Using “sleep” , timers, systemclocks or other means?
Are there any descriptive tutorials on the timers?