diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 22:17:18 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 22:17:18 +0000 |
commit | 0b2a2f4907087f36cd185bacbd685930eb7cbb31 (patch) | |
tree | fa5911a40aa50c3272b12d24ccabc98b1c4b9472 /base/time.h | |
parent | ec707950fa24bcda70344b07f88f619117343a4f (diff) | |
download | chromium_src-0b2a2f4907087f36cd185bacbd685930eb7cbb31.zip chromium_src-0b2a2f4907087f36cd185bacbd685930eb7cbb31.tar.gz chromium_src-0b2a2f4907087f36cd185bacbd685930eb7cbb31.tar.bz2 |
GTTF: Avoid assertion failures caused by clock drift.
Instead, we add a test dedicated to verifying the QPC
time drift. Otherwise the assertion is being flakily hit
in unrelated tests, which crashes the entire test binary.
With a dedicated test, we still have necessary monitoring,
but it's in one place.
TEST=base_unittests, net_unittests (stop crashing)
BUG=none
Review URL: http://codereview.chromium.org/3082014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/time.h')
-rw-r--r-- | base/time.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/time.h b/base/time.h index e885593..539cc14 100644 --- a/base/time.h +++ b/base/time.h @@ -459,6 +459,11 @@ class TimeTicks { // SHOULD ONLY BE USED WHEN IT IS REALLY NEEDED. static TimeTicks HighResNow(); +#if defined(OS_WIN) + // Get the absolute value of QPC time drift. For testing. + static int64 GetQPCDriftMicroseconds(); +#endif + // Returns true if this object has not been initialized. bool is_null() const { return ticks_ == 0; |