Perl Timer

Discussion in 'Perl Misc' started by jon, Apr 9, 2004.

  1. jon

    jon Guest

    is there a way to make a perl timer?
     
    jon, Apr 9, 2004
    #1
    1. Advertising

  2. jon

    J. Gleixner Guest

    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

    :)
     
    J. Gleixner, Apr 10, 2004
    #2
    1. Advertising

  3. jon <> 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
    Perl programming
    Fort Worth, Texas
     
    Tad McClellan, Apr 10, 2004
    #3
  4. jon

    Guest

    (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
     
    , Apr 10, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kelsang Wangchuk

    System.Timers.Timer vs. System.Threading.Timer

    Kelsang Wangchuk, Jul 31, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    719
    Kelsang Wangchuk
    Jul 31, 2003
  2. Replies:
    1
    Views:
    1,620
    Steve C. Orr [MVP, MCSD]
    Feb 22, 2005
  3. Simon

    page timer, or redirect timer

    Simon, Nov 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    11,218
    Bruce Barker
    Nov 4, 2005
  4. Replies:
    13
    Views:
    258
    Peter J. Holzer
    Jun 15, 2008
  5. Replies:
    8
    Views:
    514
    Jorgen Grahn
    Jul 15, 2013
Loading...

Share This Page