summaryrefslogtreecommitdiffstats
path: root/base/stats_counters.h
diff options
context:
space:
mode:
authordsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 20:43:33 +0000
committerdsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 20:43:33 +0000
commite1acf6f902e50222baf99bfb492ecc38a1604975 (patch)
tree503d45705b14be7e2f1ed86c71d6064abbf90fbe /base/stats_counters.h
parenta2f5993e1ce940e8a8eec900abaeed02e2eee09b (diff)
downloadchromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.zip
chromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.tar.gz
chromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.tar.bz2
Move Time, TimeDelta and TimeTicks into namespace base.
Review URL: http://codereview.chromium.org/7995 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4022 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/stats_counters.h')
-rw-r--r--base/stats_counters.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/base/stats_counters.h b/base/stats_counters.h
index eaff1b4..5dc7b89c 100644
--- a/base/stats_counters.h
+++ b/base/stats_counters.h
@@ -187,15 +187,15 @@ class StatsCounterTimer : protected StatsCounter {
void Start() {
if (!Enabled())
return;
- start_time_ = TimeTicks::Now();
- stop_time_ = TimeTicks();
+ start_time_ = base::TimeTicks::Now();
+ stop_time_ = base::TimeTicks();
}
// Stop the timer and record the results.
void Stop() {
if (!Enabled() || !Running())
return;
- stop_time_ = TimeTicks::Now();
+ stop_time_ = base::TimeTicks::Now();
Record();
}
@@ -205,12 +205,12 @@ class StatsCounterTimer : protected StatsCounter {
}
// Accept a TimeDelta to increment.
- virtual void AddTime(TimeDelta time) {
+ virtual void AddTime(base::TimeDelta time) {
Add(static_cast<int>(time.InMilliseconds()));
}
// TODO(jar) temporary hack include method till base and chrome use new name.
- void IncrementTimer(TimeDelta time) {
+ void IncrementTimer(base::TimeDelta time) {
AddTime(time);
}
@@ -220,8 +220,8 @@ class StatsCounterTimer : protected StatsCounter {
AddTime(stop_time_ - start_time_);
}
- TimeTicks start_time_;
- TimeTicks stop_time_;
+ base::TimeTicks start_time_;
+ base::TimeTicks stop_time_;
};
// A StatsRate is a timer that keeps a count of the number of intervals added so