Open this example in the interactive library
Source code
from time import perf_counter
start = perf_counter()
sum(range(1000))
print(perf_counter() - start >= 0)Sample output
True

Open this example in the interactive library
from time import perf_counter
start = perf_counter()
sum(range(1000))
print(perf_counter() - start >= 0)True