Coding/Python 삽질기2017. 7. 8. 01:18

Sleep



import time


beforeTime = time.time()

time.sleep(3) # Sleep 3 seconds

print time.time()-beforeTime


beforeTime = time.time()

time.sleep(0.05) # Sleep 50 ms

print time.time()-beforeTime


'Coding > Python 삽질기' 카테고리의 다른 글

[Python] 날짜 시간 출력 하기  (0) 2017.07.08
[Python] Thread example  (0) 2017.06.30
Python으로 마우스 제어하기  (0) 2017.06.22
Posted by chobocho