The only facility for measuring time is Date, which clips and truncates the time. Internally, JSC has access to the most precise available method on any given OS. For profiling and benchmarking, it would be useful if the jsc command-line tool exposed this functionality to JavaScript programs.
Created attachment 102079 [details] the patch
Comment on attachment 102079 [details] the patch Seems like the JS name should be "preciseTime" to match the C++ name.
Created attachment 102085 [details] the patch (changed function name) Good point, changed the name to preciseTime().
Comment on attachment 102085 [details] the patch (changed function name) To nitpick the change log is now wrong, but I don't think anyone is going to be confused by this patch, so r+.
Comment on attachment 102085 [details] the patch (changed function name) Clearing flags on attachment: 102085 Committed r91817: <http://trac.webkit.org/changeset/91817>
All reviewed patches have been landed. Closing bug.