summaryrefslogtreecommitdiffstats
path: root/base/field_trial.h
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 21:59:02 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 21:59:02 +0000
commita66e24c34a22a4a183b91ad80d74e896a4f4db5f (patch)
tree9ef6baf7f3eabbdf0205b0f6176d6922d439829d /base/field_trial.h
parent384e2a552494d4ccb0b34d1bb8e84af806050c41 (diff)
downloadchromium_src-a66e24c34a22a4a183b91ad80d74e896a4f4db5f.zip
chromium_src-a66e24c34a22a4a183b91ad80d74e896a4f4db5f.tar.gz
chromium_src-a66e24c34a22a4a183b91ad80d74e896a4f4db5f.tar.bz2
Switch application start time from Time to TimeTicks.
This is a landing of a contribution by tfarina. See CL http://codereview.chromium.org/200038 r=tfarina Review URL: http://codereview.chromium.org/208046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/field_trial.h')
-rw-r--r--base/field_trial.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/base/field_trial.h b/base/field_trial.h
index a26bde8f..82bf3b36 100644
--- a/base/field_trial.h
+++ b/base/field_trial.h
@@ -193,12 +193,11 @@ class FieldTrialList {
// of the application. In some experiments it may be useful to discount
// data that is gathered before the application has reached sufficient
// stability (example: most DLL have loaded, etc.)
- static base::Time application_start_time() {
+ static base::TimeTicks application_start_time() {
if (global_)
return global_->application_start_time_;
// For testing purposes only, or when we don't yet have a start time.
- // TODO(jar): Switch to TimeTicks
- return base::Time::Now();
+ return base::TimeTicks::Now();
}
private:
@@ -218,7 +217,7 @@ class FieldTrialList {
// A helper value made availabel to users, that shows when the FieldTrialList
// was initialized. Note that this is a singleton instance, and hence is a
// good approximation to the start of the process.
- base::Time application_start_time_;
+ base::TimeTicks application_start_time_;
// Lock for access to registered_.
Lock lock_;