make sure we only sleep till the rest of the interval