Add option to use different methods for retrieving a timestamp.
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Feb 2016 03:30:26 +0000 (03:30 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Feb 2016 03:30:26 +0000 (03:30 +0000)
commit0e8a4c756d578181ea32fdfaabd9d231f465427b
tree40637c3ccd53acaf700b0af2bc42fa3bc69df38a
parent2da9cba44c7989fbd882d936db720a194305e1ae
Add option to use different methods for retrieving a timestamp.

* Animometer/developer.html: Add performance.now and Date.now options.
* Animometer/resources/runner/animometer.js: Default to performance.now.
(window.benchmarkController.startBenchmark):
* Animometer/tests/resources/main.js: Tie the desired method to _getTimestamp.
(run): Use _getTimestamp.
(_animateLoop): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/Animometer/developer.html
PerformanceTests/Animometer/resources/runner/animometer.js
PerformanceTests/Animometer/tests/resources/main.js
PerformanceTests/ChangeLog