Timer vs Sleep [closed]

asked 2015-02-16 05:51:03 -0500

Mago Nick gravatar image

Hello everybody, I am implementing a controller over ros and I need to force the rates of two nested loops as precisely as possible.

I usually use the timer function with a callback, but I was wandering if there is a bettere way. Is there a difference of performance and precision between the timer function and the sleep function?

What do you thin I should use?

Thank you very much Andrea

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2018-01-30 22:16:23.965168