Timer for ajax requests
I'm running a few ajax requests and I want to time them.
How can I get the number of seco开发者_如何学Gonds elapsed since the 1st request?
Create a Date object when you set the first one. Create a new one whenever you want to have a point to compare to that start time. Then compare them.
精彩评论