title: How can I calculate how much time a function takes in jQuery?
body: <p>I have jQuery functions; e.g A(), B() and C()
  Each function makes some Ajax calls to different sites.</p>
  
  <p>I want to calculate how much time it takes to run each function (I guess in milliseconds)
  I just want to test my code in long loops and in different modern browsers (Safari/Chrome/IE10/Mozilla).
  More specifically, I want to calculate how much time it takes to take a callback from each Ajax request (this is also the time that the function ends right?)
  How might I achieve this?</p>