in reply to Re: cron-like timing within perl script?
in thread cron-like timing within perl script?

This looks like the ticket... particularly if I use Time::HiRes to get subsecond time and sleep resolutions; that'll let me stay within my measurement tolerances.

Thanks! This is a great resource!!!

John

  • Comment on Re: Re: cron-like timing within perl script?

Replies are listed 'Best First'.
•Re: Re: Re: cron-like timing within perl script?
by merlyn (Sage) on Feb 28, 2004 at 20:11 UTC
    You don't need Time::HiRes if you always sleep to a multiple of the 1-second system clock, which sleep(2) does. Since your requirement was an integer multiple of 1 second, that's the simplest. Now, if you wanted a task performed every 59.23 seconds, yes, Time::HiRes would help.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

Re: Re: Re: cron-like timing within perl script?
by n8ur (Acolyte) on Feb 28, 2004 at 20:08 UTC
    Sorry... didn't realize I wasn't logged in when I left that. Thanks again!

    John