www.abel.co
from time import time
start = time()
[time() for _ in range(round(1e6))]
duration_with = (start_without := time()) - start
[_ for _ in range(round(1e6))]
print(f"{(duration_with - (time() - start_without)):.6f} uS")
I get 0.085705 uS
from time import time
start = time()
[time() for _ in range(round(1e6))]
duration_with = (start_without := time()) - start
[_ for _ in range(round(1e6))]
print(f"{(duration_with - (time() - start_without)):.6f} uS")
I get 0.085705 uS