See title .. !
+6
A:
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from time import sleep
>>> sleep(0.05)
>>>
Will Boyce
2008-12-18 10:23:50
+3
A:
Note that if you rely on sleep taking exactly 50ms, you won't get that. It will just be about it.
ya23
2008-12-18 11:16:30
Around about is generally good enough, the simulation Im doing doesn't need to be precise
TK
2008-12-18 11:36:32
It might be 10 or 15ms longer than that on some platforms, so be warned.
Kylotan
2009-01-17 18:41:55