Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
The code below returns the execution time in seconds.
import time
start = time.time()
for i in range(1000):
x = i * i
end = time.time()
print(end - start)0.0002493858337402344