2021.9.10 14.53
获取请求的响应时间,以ms为单位:
response = request.get(url)
ms_time = response.elapsed.microseconds/1000
elapsed:获取响应的详细时间
microseconds:获取响应的微秒时间(0< <1s的部分),除以1000就是ms
标签:获取,python,elapsed,响应,ms,microseconds,requests,用法,response
来源: https://www.cnblogs.com/zzmm0514/p/15251311.html