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

Unified Diff: base/time_win.cc

Issue 3083002: GTTF: Increase the limit for QPC drift.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time_win.cc
===================================================================
--- base/time_win.cc (revision 54171)
+++ base/time_win.cc (working copy)
@@ -332,13 +332,13 @@
TimeDelta Now() {
// Our maximum tolerance for QPC drifting.
- const int kMaxTimeDrift = 50 * Time::kMicrosecondsPerMillisecond;
+ const int kMaxTimeDriftMicroseconds = 60150;
if (IsUsingHighResClock()) {
int64 now = UnreliableNow();
// Verify that QPC does not seem to drift.
- DCHECK_LT(now - ReliableNow() - skew_, kMaxTimeDrift);
+ DCHECK_LT(abs((now - ReliableNow()) - skew_), kMaxTimeDriftMicroseconds);
return TimeDelta::FromMicroseconds(now);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698