开发者

Timer for ajax requests

开发者 https://www.devze.com 2023-03-25 10:38 出处:网络
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 ne

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消