Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: cc/debug/lap_timer.h

Issue 279183002: Use LapTimer in rasterize_and_record micro benchmark. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused Now() Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_LAP_TIMER_H_ 5 #ifndef CC_DEBUG_LAP_TIMER_H_
6 #define CC_TEST_LAP_TIMER_H_ 6 #define CC_DEBUG_LAP_TIMER_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 // LapTimer is used to calculate average times per "Lap" in perf tests. 12 // LapTimer is used to calculate average times per "Lap" in perf tests.
13 // Current() reports the time since the last call to Start(). 13 // Current() reports the time since the last call to Start().
14 // Store() adds the time since the last call to Start() to the accumulator, and 14 // Store() adds the time since the last call to Start() to the accumulator, and
15 // resets the start time to now. Stored() returns the accumulated time. 15 // resets the start time to now. Stored() returns the accumulated time.
16 // NextLap increments the lap counter, used in counting the per lap averages. 16 // NextLap increments the lap counter, used in counting the per lap averages.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 int remaining_warmups_; 53 int remaining_warmups_;
54 int remaining_no_check_laps_; 54 int remaining_no_check_laps_;
55 base::TimeDelta time_limit_; 55 base::TimeDelta time_limit_;
56 int check_interval_; 56 int check_interval_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(LapTimer); 58 DISALLOW_COPY_AND_ASSIGN(LapTimer);
59 }; 59 };
60 60
61 } // namespace cc 61 } // namespace cc
62 62
63 #endif // CC_TEST_LAP_TIMER_H_ 63 #endif // CC_DEBUG_LAP_TIMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698