Hello,<br><br>With the time module and sleep(60)?<br><a href="http://www.python.org/doc/2.3.5/lib/module-datetime.html">http://www.python.org/doc/2.3.5/lib/module-datetime.html</a><br><br><table cellpadding="0" cellspacing="0">
<tbody><tr valign="baseline"><td><b><tt id="l2h-1775" id="l2h-1775" class="function">sleep</tt></b>(</td>
  <td><var>secs</var>)</td></tr></tbody></table>
Suspend execution for the given number of seconds.  The argument may
be a floating point number to indicate a more precise sleep time.
The actual suspension time may be less than that requested because any
caught signal will terminate the <tt class="function">sleep()</tt> following
execution of that signal's catching routine.  Also, the suspension
time may be longer than requested by an arbitrary amount because of
the scheduling of other activity in the system.<br><br>Wim<br><br><div><span class="gmail_quote">On 1/16/06, <b class="gmail_sendername">frank h.</b> &lt;<a href="mailto:frank.hoffsummer@gmail.com">frank.hoffsummer@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello<br>how can I break a loop after a certain amount of time has passed?
<br><br>pseudocode:<br><br>with timeout of 60sec:<br>&nbsp;&nbsp;&nbsp;&nbsp;while True:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pass<br><br>is there a simple way? without resorting to queues etc. (this is a bit<br>over my head....)<br>thanks for any insight you might have
<br>-frank<br><br><br>On 1/16/06, frank h. &lt;<a href="mailto:frank.hoffsummer@gmail.com">frank.hoffsummer@gmail.com</a>&gt; wrote:<br>&gt; Hello<br>&gt; how can I break a loop after a certain amount of time has passed?<br>
&gt;<br>&gt; pseudocode:<br>&gt;<br>&gt; with timeout of 60sec:<br>&gt;<br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">
http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>