Capturing time between HTML form submit action and printing response
Use ajax request to submit form. Fetch the time on clicking the button and after getting the response and then calculate the difference.
I have a Python Flask application with a HTML form which accept few inputs from user, uses those in an python program which returns the processed values back to flask application return statement.
I wanted to capture the time took for whole processing and rendering output data on browser but not sure how to do that. At present I have captured the take by python program to process the input values but it doesn't account for complete time between "submit" action and rendering output data.