DescriptionFixit: Factor out common base::Time* math operator overloads.
This is part 1 of a 2-part change to fork base::TimeTicks into three
type-checked time classes (TimeTicks + ThreadTicks + TraceTicks). The
forking of TimeTicks will ensure values from different clocks are not
erroneously being mixed together when doing time math.
In this change, the identical comparison and math operator overloads
found in base::Time and base::TimeTicks are being factored-out into a
templated base class. In a following change, this base class will also
be used to de-dupe this common functionality in the two new time
classes.
BUG=467417
Committed: https://crrev.com/7ca717095b4758cb76e53e904b775852e46d646d
Cr-Commit-Position: refs/heads/master@{#328696}
Patch Set 1 #
Total comments: 9
Patch Set 2 : Added/Fixed comments. Added is_zero(). #
Total comments: 1
Messages
Total messages: 11 (3 generated)
|