Compute and log the response time