How to determine a execution time of a PHP, jQuery, AJAX script
<p><strong>In 1st condition :</strong></p>

<p>I am passing values by using jQuery AJAX to a PHP file named email.php. Now I want that script to be executed up to 20 secs then after 20 secs it should throw an error that max execution time reached so that I can execute something through jQuery AJAX via getting the response.</p>

<p><strong>In 2nd Condition</strong></p>

<p>I want to determine the execution time of a jQuery code. Ex: if I have got some value through fields and I have sent to the server, somehow if the server does not respond then I want the script execution time, if the script has executed for more than 20 secs then I will terminate that process and display an error message of network error!</p>