WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
84914
[Chromium] Need to expose TimeTicks::HighResNow()
https://bugs.webkit.org/show_bug.cgi?id=84914
Summary
[Chromium] Need to expose TimeTicks::HighResNow()
James Simonsen
Reported
2012-04-25 17:42:41 PDT
In order to properly implement window.performance.now(), we need a sub-millisecond timer. Currently, we return TimeTicks::Now(). On Windows, that only has (at best) a 1 ms resolution. We need to instead use TimeTicks::HighResNow() to get microsecond resolution. Note the warnings in time_win.cc that HighResNow() is slower and not always available. For some users, they'll never get better that tick resolution (1 - 15 ms). This should probably be plumbed through via monotonicallyIncreasingTime(). We should also be careful to ensure that TimeTicks::Now() and TimeTicks::HighResNow() use the same time base. The network times that are used for Navigation Timing are passed in by calling TimeTicks::Now() in the browser process.
Attachments
Add attachment
proposed patch, testcase, etc.
Stephen Chenney
Comment 1
2013-04-15 07:14:22 PDT
https://code.google.com/p/chromium/issues/detail?id=231325
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug