Programming

sleep command in python

steloflute 2012. 8. 10. 15:14

http://mail.python.org/pipermail/tutor/2006-November/050915.html

 

import time
time.sleep(secs)

"Suspend execution for the given number of seconds. The argument may be
a floating point number to indicate a more precise sleep time. The
actual suspension time may be less than that requested because any
caught signal will terminate the sleep() following execution of that
signal's catching routine. Also, the suspension time may be longer than
requested by an arbitrary amount because of the scheduling of other
activity in the system."


 

http://docs.python.org/library/time.html#time.sleep

 

 

'Programming' 카테고리의 다른 글

(emacs lisp) random  (0) 2012.08.11
Python으로 KOSPI200 시세 얻기  (0) 2012.08.10
(Python) Data Compression  (0) 2012.08.10
3 ways to define a JavaScript class  (0) 2012.08.05
The Need For One True Coding Style  (0) 2012.08.02