| Index: base/time/time.h
|
| diff --git a/base/time/time.h b/base/time/time.h
|
| index eb8669330276c7e4159a2edc57ca88eaf9071fa5..18de085e341714b85efe6e10a988835601bf998e 100644
|
| --- a/base/time/time.h
|
| +++ b/base/time/time.h
|
| @@ -680,6 +680,12 @@ class BASE_EXPORT TimeTicks {
|
| return ticks_;
|
| }
|
|
|
| + // Returns |this| snapped to the next tick, given a |tick_phase| and
|
| + // repeating |tick_interval| in both directions. |this| may be before,
|
| + // after, or equal to the |tick_phase|.
|
| + TimeTicks SnappedToNextTick(TimeTicks tick_phase,
|
| + TimeDelta tick_interval) const;
|
| +
|
| TimeTicks& operator=(TimeTicks other) {
|
| ticks_ = other.ticks_;
|
| return *this;
|
|
|