I was working on the unit tests with @gerkey for rate.sleep and expected the sleep to not return before expected.
On repeated runs it had a jitter on the order of 10us. (The printout is in nanoseconds. and the expected duration is 100 ms
Console output of observed delta: https://gist.github.com/tfoote/0ec473b38bc517d12779
We added an epsilon to the unit tests for now (#182), but we should review our code to make it as consistent as with the assumptions of developers who are used to calling the standard sleep methods.
I was working on the unit tests with @gerkey for rate.sleep and expected the sleep to not return before expected.
On repeated runs it had a jitter on the order of 10us. (The printout is in nanoseconds. and the expected duration is 100 ms
Console output of observed delta: https://gist.github.com/tfoote/0ec473b38bc517d12779
We added an epsilon to the unit tests for now (#182), but we should review our code to make it as consistent as with the assumptions of developers who are used to calling the standard sleep methods.