Created
March 31, 2020 07:15
-
-
Save abhirama/8297a9079057c3106698f9f68e9b398c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from timeit import default_timer as timer | |
from requests import exceptions as e | |
start = timer() | |
r = requests.get("https://httpbin.org/drip?duration=30&delay=0", timeout=(6.4, 6)) | |
end = timer() | |
print("Time spent waiting for the response - ", end - start, "Seconds") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment