demo_requests_response_elapsed.py:
import requests url = 'https://begtut.com/python/demopage.htm' x = requests.get(url) print(x.elapsed)
➜ begtut>python demo_requests_response_elapsed.py
0:00:00.154986