1. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Meriden, Connecticut
    Rep Power

    How Accurate is Sleep

    I was just wondering how accurate time.sleep() really is. I've been told that in Visual Basic 6 the timer controls can be up to 4 milliseconds off every time you use them. In Python is time.sleep() off by any amount of time, even if its 1 millisecond?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Rep Power
    From the module docs, it looks like it can be off by any unknown amount of time every call:

    sleep( secs)

IMN logo majestic logo threadwatch logo seochat tools logo