On Friday 29 February 2008 18:25, Tiger12506 wrote:
> time.sleep is not exactly accurate, so I would suggest that you use this
> method, short 5 minutes or so and then do a sleep(10) or so in a loop to
> get closer to the time.

Another advantage to shorter sleeps is it reduces the latency of anything else 
your program needs to do, such as exit gracefully, reschedule the event, or 
whatever.  Not too short, because that uses more CPU time.

It also makes a difference if the clock gets reset :)

Cheers
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to