Add TimeDelta::{Ceil,Floor,Round}ToMultiple(TimeDelta interval).
This function returns the current TimeDelta, snapped to the nearest multiple of |interval| by the appropriate method. This will be useful for a variety of current callers of / and %. Bug: 1104532 Change-Id: I3add5b875961938e7620e12b86127c508412c68d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2343509 Commit-Queue: Peter Kasting <pkasting@chromium.org> Reviewed-by:Yuri Wiitala <miu@chromium.org> Auto-Submit: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#797928}
Showing
Please register or sign in to comment