Bug 94263 - Web Inspector: console.time() should use performance.now()
Summary: Web Inspector: console.time() should use performance.now()
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Andrey Kosyakov
Depends on:
Reported: 2012-08-16 16:11 PDT by Rico Sta Cruz
Modified: 2012-08-22 01:42 PDT (History)
11 users (show)

See Also:

Patch (1.67 KB, patch)
2012-08-21 08:45 PDT, Andrey Kosyakov
no flags Details | Formatted Diff | Diff
Patch (2.20 KB, patch)
2012-08-21 09:00 PDT, Andrey Kosyakov
pfeldman: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rico Sta Cruz 2012-08-16 16:11:04 PDT
The functions `console.time()` and `console.timeEnd()` display durations in milliseconds. Considering how this is most often used as an informal benchmarking tool, it may be best to give it more precision.

/* Do something */

/* Output: */
hello: 83ms

/* Expected output: */
hello: 83.59299992ms
Comment 1 Andrey Kosyakov 2012-08-21 08:45:49 PDT
Created attachment 159697 [details]
Comment 2 Andrey Kosyakov 2012-08-21 09:00:09 PDT
Created attachment 159699 [details]
Comment 3 WebKit Review Bot 2012-08-21 17:09:29 PDT
Comment on attachment 159699 [details]

Rejecting attachment 159699 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
Merge conflict in Source/WebCore/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 Rebaseline various tests for Mountain Lion that differ from the generic results.

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 164.

Full output: http://queues.webkit.org/results/13570012
Comment 4 Andrey Kosyakov 2012-08-22 01:42:44 PDT
Committed r126276: <http://trac.webkit.org/changeset/126276>