Is there a way I can check how long it takes for javascript to execute a function in milliseconds?
<p>I have code like the following:</p>

<pre><code>oTable = $('#dataTable').dataTable({
    "sScrollX": "100%",
    "bScrollCollapse": true,
    iDisplayLength: -1,
    aLengthMenu: [[-1, 25, 50, 200, "All"], [10, 25, 50, 200, "All"]],
    aoColumnDefs: [
        { "sSortDataType":"dom-data-rk", "aTargets": ["sort-data-rk"] },
        { "sType": "date-uk", "aTargets": ["sort-date-uk"] },
        { "sType": "datetime-uk", "aTargets": ["sort-datetime-uk"] }
    ]
});
</code></pre>

<p>Is there a way I can time how long this code takes to execute using javascript or jQuery. Something like the Stopwatch method in C#?</p>
