[Tutor] Accuracy of time.sleep()
pythontut at pusspaws.net
Sat Dec 4 15:24:45 CET 2004
OK I may be pushing it, ;-)
I need a script to sleep from any point to 8:05AM when in needs to
So I calculate the number of seconds with the following ....
# Returns the number of seconds till 8:05AM
# If we are before 8:05, then ...
# If we are after 8:05, then ...
Then I ...
I expected the script to re-start 2-3 seconds after 8:05, python
reloading after a long sleep etc, what I get is the script restarting at
08:04.55, earlier ???
OK this is not a world stopping problem, more of a curiosity.
More information about the Tutor