| Index: cc/debug/lap_timer.cc
|
| diff --git a/cc/debug/lap_timer.cc b/cc/debug/lap_timer.cc
|
| index 10d26f94f4de514b0094b464efeec0dddf7a37f1..17bca3d313f11869563d90728bbb46741b345d9e 100644
|
| --- a/cc/debug/lap_timer.cc
|
| +++ b/cc/debug/lap_timer.cc
|
| @@ -15,6 +15,11 @@ base::TimeTicks Now() {
|
| : base::TimeTicks::Now();
|
| }
|
|
|
| +// Default values.
|
| +static const int kTimeLimitMillis = 3000;
|
| +static const int kWarmupRuns = 5;
|
| +static const int kTimeCheckInterval = 10;
|
| +
|
| } // namespace
|
|
|
| LapTimer::LapTimer(int warmup_laps,
|
| @@ -29,6 +34,12 @@ LapTimer::LapTimer(int warmup_laps,
|
| Reset();
|
| }
|
|
|
| +LapTimer::LapTimer()
|
| + : LapTimer(kWarmupRuns,
|
| + base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
|
| + kTimeCheckInterval) {
|
| +}
|
| +
|
| void LapTimer::Reset() {
|
| accumulator_ = base::TimeDelta();
|
| num_laps_ = 0;
|
|
|