Why is time.sleep() accuracy influenced by Chrome?
问题 I've noticed some strange behaviour that may or may not be specific to my system. (lenovo t430 running windows 8) With this script: import time now = time.time() while True: then = now now = time.time() dif = now - then print(dif) time.sleep(0.01) I get the following output (what I would consider nominal) with a browser open. However without a browser open I observe a severe per loop latency. Obviously this is counter-intuitive as I think anyone would expect better performance when you have