[Tutor] time.sleep problem
Joel Ricker
joel@prettyhipprogramming.com
Tue, 9 Jul 2002 01:19:20 -0400
From: "Tim Peters" <tim.one@comcast.net>
> #elif defined(MS_WINDOWS)
> ...
> /* XXX Can't interrupt this sleep */
Ah, well I guess sleep() is out.
My plan is to have this script automatically start up when the system is
turned on and continue indefinitely until the system is shutdown,
periodically running a portion of code. Granted when Windows wants to shut
something down, it will but I'm hoping for a more graceful solution.
Should I just go with a timing solution, using time.clock() maybe to
accumulate how much time has passed and check it against how many minutes to
wait?
Joel