summaryrefslogtreecommitdiffstats
path: root/base/time.h
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-18 00:42:48 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-18 00:42:48 +0000
commit85786f935163dd4c46dc2931111189e8d119d4d8 (patch)
tree41c674929dc600ac070fed446013754d87e34b83 /base/time.h
parent0effc1cb2317bc1e6ae41a8a1b831921e45d62bd (diff)
downloadchromium_src-85786f935163dd4c46dc2931111189e8d119d4d8.zip
chromium_src-85786f935163dd4c46dc2931111189e8d119d4d8.tar.gz
chromium_src-85786f935163dd4c46dc2931111189e8d119d4d8.tar.bz2
Retrial of the first step to port file_util::CountFilesCreatedAfter()
Submitting http://codereview.chromium.org/75033 on behalf of hamaji Review URL: http://codereview.chromium.org/67276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/time.h')
-rw-r--r--base/time.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/time.h b/base/time.h
index a2d145c..0625bfb 100644
--- a/base/time.h
+++ b/base/time.h
@@ -207,6 +207,12 @@ class Time {
// times are increasing, or that two calls to Now() won't be the same.
static Time Now();
+ // Returns the current time. Same as Now() except that this function always
+ // uses system time so that there are no discrepancies between the returned
+ // time and system time even on virtual environments including our test bot.
+ // For timing sensitive unittests, this function should be used.
+ static Time NowFromSystemTime();
+
// Converts to/from time_t in UTC and a Time class.
// TODO(brettw) this should be removed once everybody starts using the |Time|
// class.