Perl Timer

J

J. Gleixner

jon said:
is there a way to make a perl timer?

Sure...mmm.. what's a "perl timer"?

perldoc -f alarm
perldoc -f sleep
perldoc -f localtime

Is that what you want???? Otherwise:

# make "a perl timer"
make: don't know how to make a perl timer. Stop

:)
 
T

Tad McClellan

jon said:
is there a way to make a perl timer?


Time for 5 seconds:

perl -e 'sleep shift; print "Bzzzzz\n"' 5

Time for 10 seconds:

perl -e 'sleep shift; print "Bzzzzz\n"' 10




If that doesn't meet your requirements, then consider sharing
what those requirements are.
 
C

ctcgag

is there a way to make a perl timer?

This is how I did it:

1) Buy a watch with a stopwatch functionality
2) Wear it until one of the straps breaks.
3) Use the other strap to hang it next to the computer display.
4) Use the stopwatch whenever you want to time a perl script.

HTH.

Xho
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top