We have a requirement where we have to send the elapsed time as a part of the response from proxy.
After my research and analysis I used a JS as the last execution policy in the target endpoint to find the difference between the (current timestamp - client.received.start.timestamp) and used it in the response.
PS: I know we will not be able to get the actual elaspsed time but then the closest should be fine.
Please share if there is better solution which can be implemented to achieve this.