Take note of the time before the request and after the request. The difference will be the time taken to complete the request.
var start = new Date().getTime(),
difference;
$.ajax({
url: url,
type: "POST",
data: {
name: "John",
location: "Boston"
}
}).done(function () {
difference = new Date().getTime() - start;
});