Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Perl Timer

Reply
Thread Tools

Perl Timer

 
 
jon
Guest
Posts: n/a
 
      04-09-2004
is there a way to make a perl timer?

 
Reply With Quote
 
 
 
 
J. Gleixner
Guest
Posts: n/a
 
      04-09-2004
jon wrote:
> 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


 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      04-10-2004
jon <(E-Mail Removed)> wrote:

> 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.


--
Tad McClellan SGML consulting
http://www.velocityreviews.com/forums/(E-Mail Removed) Perl programming
Fort Worth, Texas
 
Reply With Quote
 
ctcgag@hotmail.com
Guest
Posts: n/a
 
      04-10-2004
(E-Mail Removed) (jon) wrote:
> 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

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Does One Implement a Timer in Perl? kvnsmnsn@hotmail.com Perl Misc 13 06-15-2008 05:50 PM
I know about the shutdown timer, is there a "switch on" timer... Mal Carter Computer Support 3 01-12-2008 01:58 AM
page timer, or redirect timer Simon ASP .Net 1 11-04-2005 07:14 PM
System.Timers.Timer/System.Threading.Timer Not Firing At All on Dev Server james.e.coleman@gmail.com ASP .Net 1 02-22-2005 09:41 PM
System.Timers.Timer vs. System.Threading.Timer Kelsang Wangchuk ASP .Net 0 07-31-2003 04:28 PM



Advertisments