Ilan Kleiman
Ilan Kleiman

Reputation: 1209

How can I make Perl Rest (minutes)

Currently, I make perl rest between functions using

for my $j (0 .. 99999999){}

This somehow makes it rest for about 30 seconds (+/-5)

Is there a way I can more "efficiently" make perl rest? I'm trying to have it rest for 270 seconds (about) (4.5 minutes). And adding more 9's to my current rest statement would make the script very unhappy...

Upvotes: 0

Views: 82

Answers (1)

ikegami
ikegami

Reputation: 385917

sleep(4.5 * 60);

.............

Upvotes: 6

Related Questions