-
nduca@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66684 This implements the high resolution time spec from http://www.w3.org/TR/hr-time/, giving javascript access to sub-millisecond timestamps that increase over time instead of being subject to skewing, for example when the host machine's clock changes. Reviewed by Tony Gentilcore. Test: fast/performance/performance-now-timestamps.html * page/Performance.cpp: (WebCore::Performance::now): (WebCore): * page/Performance.h: (Performance): * page/Performance.idl: LayoutTests: Implement high-resolution time via window.performance.now() https://bugs.webkit.org/show_bug.cgi?id=66684 This implements the high resolution time spec from http://www.w3.org/TR/hr-time/, giving javascript access to sub-millisecond timestamps that increase over time instead of being subject to skewing, for example when the host machine's clock changes. Reviewed by Tony Gentilcore. * fast/dom/Window/window-properties-performance-expected.txt: * fast/performance/performance-now-timestamps-expected.txt: Added. * fast/performance/performance-now-timestamps.html: Added. * fast/performance/script-tests/TEMPLATE.html: Added. * fast/performance/script-tests/performance-now-timestamps.js: Added. (busyWait): * platform/qt/fast/dom/Window/window-properties-performance-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@115503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
996af599