Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: simple timeout

by zejames (Hermit)
on Nov 08, 2004 at 14:30 UTC ( #406070=note: print w/replies, xml ) Need Help??


in reply to Re^3: simple timeout
in thread simple timeout

Seems that alarm is not working on ActiveState (http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/Windows/ActivePerl-Winfaq5.html).

I'd advise you to have a look at Time::hires.

HTH

--
zejames

Replies are listed 'Best First'.
Re^5: simple timeout
by disciple01 (Novice) on Nov 08, 2004 at 16:49 UTC
    Tried using Time::Hires;

    use Time::HiRes qw (ualarm setitimer); ualarm(5000); exit;

    returns "ualarm is not a valid Time::HiRes macro at C:/Perl/lib/Time/HiRes.pm line 27."

    Not having much luck here. =(

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://406070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2020-10-23 10:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (237 votes). Check out past polls.

    Notices?