Forum Discussion
Altera_Forum
Honored Contributor
20 years agoaccurate "sleeping"
Hi All, This post is more of a 'meditation' than a question, really. It can be very useful for beginners, but experts may also find it interesting. When I want my application to sl...
Altera_Forum
Honored Contributor
20 years agoI think that for sure using the third solution (the timestamp) should work fine.
The only drawback is the same as usleep: the system cannot perform other activities while sleeping. If you are developing a really simple application, that could be a good solution. On the other hand, if the application starts to be complex, I would suggest using an RTOS task for each job to be performed, and each task could be woken up by appropriate alarms. Paolo