Measuring Execution Time of Flask App Endpoint