* Improve resampling of up and remove events. This improves resampling of these events by searching for them until the next approximate sample time. Co-authored-by: David Reveman <reveman@google.com>