On Mon, Nov 30, 2009 at 4:55 PM, Erez Schatz <[email protected]> wrote:
> 2009/11/30 David Schmidt <[email protected]>:
>> Hello
>>
>> I would like to execute some Code after a certain amount of time has
>> passed (then restart the timer but with a different time value)
>
>
>> Basically I am looking for something as simple as
>>
>> my $do_it = { ... };
>> use MyTimer;
>> my timer = MyTimer->new($delay, $do_it);
>>
>> and inside of $do_it I intend to start another timer.
>>
>> is there any simple class that does what I want? I failed to find it.
>
>
> Would sleep() do? (http://perldoc.perl.org/functions/sleep.html)
>
> --
> Erez
>
> "The government forgets that George Orwell's 1984 was a warning, and
> not a blueprint"
> http://www.nonviolent-conflict.org/ -- http://www.whyweprotest.org/
>

Hi and thanks

No because I need a non-blocking timer/countdown/delay/timeout

greetings
david

-- 
David Schmidt   |   http://www.fm5.at

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to