Reputation: 83
Is there a method to get time between send request and receive answer or do I need to do it manually?
Framework: Vanilla JS
Regards, Matt
Upvotes: 2
Views: 1406
Reputation: 121998
Unfortunately No.
You have to do it manually.Here is a sample code and article.
And the technique is
var duration = (endTime - startTime)/1000;
And here is a working fiddle
Upvotes: 1