I have been writing my first jQuery plugin and struggling to find a means to time how long different pieces of code take to run.
I can use firebug and console.time/profile. However, it seems that because my code executes so fast I get no results with profile and with time it spits out 0ms. (http://stackoverflow.com/questions/2690697/firebug-profiling-issue-no-activity-to-profile/2690846#2690846)
Is there a way to get the time at a greater level of detail that milliseconds in javascript?
UPDATE: I've put code that I want to test in a loop that loops it a million times, but it's not an ideal solution.