Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: how long does for(1..$n) take?

by MrNobo1024 (Hermit)
on Feb 16, 2001 at 04:30 UTC ( [id://58749]=note: print w/replies, xml ) Need Help??


in reply to how long does for(1..$n) take?

If you want to make code loop for 60 seconds, you don't need for, you can just use time:
my $start = time; while(time < $start + 60) { # code goes here }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-24 04:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found