Lawrence D'Oliveiro wrote:
>Hendrik van Rooyen wrote:
>
>> import time
>> while True:
>> end_time = time.time() + 5
>> while time.time() < end_time:
>> do_the_in_between_stuff()
>> do_the_every_five_second_stuff()
>
>Maybe I'm dense, but ... where do you
In message <[EMAIL PROTECTED]>, Hendrik
van Rooyen wrote:
> import time
> while True:
> end_time = time.time() + 5
> while time.time() < end_time:
> do_the_in_between_stuff()
> do_the_every_five_second_stuff()
Maybe I'm dense, but ... where do you stop
"Petr Jakeš" <[EMAIL PROTECTED]> wrote:
>"Leon Zhang" <[EMAIL PROTECTED]> wrote:
>
>>
>> I am not an expert, but why not to use time.sleep(5)?
>> If you are using wxPython, you may also try wx.Timer, in which you could
>> set its interval.
>>
>>
>Thanks for your reply.
>During the 5s period my sc
2008/10/6 Petr Jakeš <[EMAIL PROTECTED]>:
>> I am not an expert, but why not to use time.sleep(5)?
>> If you are using wxPython, you may also try wx.Timer, in which you could
>> set its interval.
>>
>
> Thanks for your reply.
> During the 5s period my script has to do some stuff instead of sleeping
On Mon, 6 Oct 2008 21:13:21 +0200
"Petr Jake?" <[EMAIL PROTECTED]> wrote:
> > I am not an expert, but why not to use time.sleep(5)?
> >
> During the 5s period my script has to do some stuff instead of sleeping.
> Thats why it runs in the loop and once in 5s period it has to trigger some
> other stu
>
> I am not an expert, but why not to use time.sleep(5)?
> If you are using wxPython, you may also try wx.Timer, in which you could
> set its interval.
>
>
Thanks for your reply.
During the 5s period my script has to do some stuff instead of sleeping.
Thats why it runs in the loop and once in 5s p
On Mon, Oct 6, 2008 at 2:07 PM, Petr Jakes <[EMAIL PROTECTED]> wrote:
> I have infinitive loop running script and I would like to check
> something periodically after 5 seconds (minutes, hours...) time period
> (I do not mean time.sleep(5) ). Till now, I have following script, but
> I think there m
Petr Jakes wrote:
I have infinitive loop running script and I would like to check
something periodically after 5 seconds (minutes, hours...) time period
(I do not mean time.sleep(5) ). Till now, I have following script, but
I think there must be something more elegant.
eventFlag = False
while 1:
Petr,
I am not an expert, but why not to use time.sleep(5)?
If you are using wxPython, you may also try wx.Timer, in which you could set
its interval.
Good luck!
Leon
On Tue, Oct 7, 2008 at 2:07 AM, Petr Jakes <[EMAIL PROTECTED]> wrote:
> I have infinitive loop running script and I would like t
I have infinitive loop running script and I would like to check
something periodically after 5 seconds (minutes, hours...) time period
(I do not mean time.sleep(5) ). Till now, I have following script, but
I think there must be something more elegant.
eventFlag = False
while 1:
time.sleep(0.01
10 matches
Mail list logo