# Pastebin b52IAkyV import time try: from urllib.request import urlopen except ImportError: from urllib import urlopen try: clock = time.process_time except: clock = time.clock l = [] for _ in range(10): t0 = clock() for i in range(100): urlopen("https://www.python.org") t1 = clock() print("Next: %.2f" % (t1 - t0)) l.append(t1-t0) print("Average: %.2f" % (sum(l)/len(l)))