📜  time.sleep() 更快 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:06.182000             🧑  作者: Mango

代码示例1
> pip install timev2
_________________________________________
from TimeV2 import time2

# Before wait
timeToWait = 0.000001 # Time to wait
unixStart = time2.unix()

while time2.unix()-unixStart < timeToWait:
    continue

# After wait
print("Time up!")