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

Issue 3387011: The submillisecond test was broken in at least two ways. First, the... (Closed)

Created:
10 years, 3 months ago by Mike Belshe
Modified:
9 years, 5 months ago
Reviewers:
Paweł Hajdan Jr.
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

The submillisecond test was broken in at least two ways. First, the high resolution clock is intentionally disabled on some systems (old AMDs). If QueryPerformanceCounter doesn't work on this system, we shouldn't run the test. Second, however, if the time between two HighResNow() calls is *always* 0us, then this test would fail. Due to speedstep technology with intentionally underclocked QPC (at the windows level), this is quite possible. BUG=42850 TEST=TimeTicks.SubMillisecondTimers

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -16 lines) Patch
M base/time.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/time_win.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M base/time_win_unittest.cc View 2 chunks +18 lines, -16 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Mike Belshe
10 years, 3 months ago (2010-09-22 07:03:00 UTC) #1
Paweł Hajdan Jr.
http://codereview.chromium.org/3387011/diff/1/4 File base/time_win_unittest.cc (right): http://codereview.chromium.org/3387011/diff/1/4#newcode120 base/time_win_unittest.cc:120: // Run kRetries attempts to see a sub-millisecond timer. ...
10 years, 3 months ago (2010-09-22 09:35:31 UTC) #2
Mike Belshe
http://codereview.chromium.org/3387011/diff/1/4 File base/time_win_unittest.cc (right): http://codereview.chromium.org/3387011/diff/1/4#newcode120 base/time_win_unittest.cc:120: // Run kRetries attempts to see a sub-millisecond timer. ...
10 years, 3 months ago (2010-09-22 21:58:48 UTC) #3
Paweł Hajdan Jr.
10 years, 3 months ago (2010-09-23 11:09:29 UTC) #4
LGTM

Please upload an updated patchset so I can also review the updated test comment.
I'm not letting the review depending on that because of the TZ difference.

Powered by Google App Engine
This is Rietveld 408576698