Make a variable, in the condition where you request AJAX set it to start counting (in a separate event) dt or wallclock time (add to the variable) when AJAX request complete triggers shut off the counting and your variable will contain the total time it took.