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

Issue 25468003: Always use timeGetTime() for TimeTicks::Now() on Windows. (Closed)

Created:
7 years, 2 months ago by Benedikt Meurer
Modified:
7 years, 2 months ago
CC:
v8-dev
Visibility:
Public.

Description

Always use timeGetTime() for TimeTicks::Now() on Windows. This way, we also ensure that timeGetTime() is used for Time::Now(), and thereby Date.now() even if GetTickCount64() is available. Also add test coverage for Time::Now(), TimeTicks::Now() and TimeTicks::HighResNow(). BUG=chromium:288924 TEST=cctest/test-timer

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed nits #

Patch Set 3 : REBASE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -142 lines) Patch
M src/platform-win32.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/platform/elapsed-timer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/platform/time.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/platform/time.cc View 1 10 chunks +56 lines, -78 lines 0 comments Download
M src/utils/random-number-generator.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-time.cc View 1 2 chunks +52 lines, -1 line 0 comments Download
M test/mjsunit/mjsunit.status View 1 chunk +0 lines, -4 lines 0 comments Download
D test/mjsunit/timer.js View 1 chunk +0 lines, -53 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Benedikt Meurer
Hey Hannes, Here's the fix for the Date.now() Windows issue. PTAL -- Benedikt
7 years, 2 months ago (2013-10-01 11:41:56 UTC) #1
Hannes Payer (out of office)
Thanks Benedikt, mostly reformatting/renaming nits. https://codereview.chromium.org/25468003/diff/1/src/platform/time.cc File src/platform/time.cc (right): https://codereview.chromium.org/25468003/diff/1/src/platform/time.cc#newcode183 src/platform/time.cc:183: // Check if we ...
7 years, 2 months ago (2013-10-02 11:27:25 UTC) #2
Benedikt Meurer
PTAL https://codereview.chromium.org/25468003/diff/1/src/platform/time.cc File src/platform/time.cc (right): https://codereview.chromium.org/25468003/diff/1/src/platform/time.cc#newcode183 src/platform/time.cc:183: // Check if we need to resynchronize due ...
7 years, 2 months ago (2013-10-02 12:27:46 UTC) #3
Hannes Payer (out of office)
LGTM
7 years, 2 months ago (2013-10-02 12:44:09 UTC) #4
Benedikt Meurer
7 years, 2 months ago (2013-10-02 13:38:35 UTC) #5
This was committed with revision 17080, but SVN returned an error (even tho it
actually did the commit) so the CL was not updated.

https://code.google.com/p/v8/source/detail?r=17080

Powered by Google App Engine
This is Rietveld 408576698