| Index: cc/debug/lap_timer.cc
|
| diff --git a/cc/debug/lap_timer.cc b/cc/debug/lap_timer.cc
|
| index 17bca3d313f11869563d90728bbb46741b345d9e..eb6900c460a7403c7abdaaf882c8a3b25ba89e3a 100644
|
| --- a/cc/debug/lap_timer.cc
|
| +++ b/cc/debug/lap_timer.cc
|
| @@ -10,9 +10,13 @@ namespace cc {
|
|
|
| namespace {
|
|
|
| -base::TimeTicks Now() {
|
| - return base::TimeTicks::IsThreadNowSupported() ? base::TimeTicks::ThreadNow()
|
| - : base::TimeTicks::Now();
|
| +// Returns the offset from the origin from the ThreadTicks time source.
|
| +// TimeTicks is used as a fallback if ThreadTicks is not available on the
|
| +// current platform.
|
| +base::TimeDelta Now() {
|
| + return base::ThreadTicks::IsSupported()
|
| + ? base::ThreadTicks::Now() - base::ThreadTicks()
|
| + : base::TimeTicks::Now() - base::TimeTicks();
|
| }
|
|
|
| // Default values.
|
| @@ -65,7 +69,7 @@ void LapTimer::NextLap() {
|
| ++num_laps_;
|
| --remaining_no_check_laps_;
|
| if (!remaining_no_check_laps_) {
|
| - base::TimeTicks now = Now();
|
| + base::TimeDelta now = Now();
|
| accumulator_ += now - start_time_;
|
| start_time_ = now;
|
| remaining_no_check_laps_ = check_interval_;
|
|
|