[time-nuts] Slightly off-topic: How to take measurements atfixed intervals in Perl
didier at cox.net
Sun Feb 24 09:16:01 EST 2008
This is a very nice thread, in 2 days, I got two very useful utilities :-)
Thanks Tom and John!
I tried Tom's alarm utility while AVG was doing a virus scan on my computer.
This normally slows everything down quite significantly, but alarm kept
ticking regularly and the CPU utilisation of "alarm" never moved higher than
0. I like it.
Under Unix/Linux, the alarm utility is a nice bridge between a simple
sleep() and a cron job.
> -----Original Message-----
> From: time-nuts-bounces at febo.com
> [mailto:time-nuts-bounces at febo.com] On Behalf Of Tom Van Baak
> Sent: Saturday, February 23, 2008 11:15 PM
> To: Discussion of precise time and frequency measurement
> Subject: Re: [time-nuts] Slightly off-topic: How to take
> measurements atfixed intervals in Perl
> > I finally figured it out, and the details are at
> > http://www.febo.com/pages/perl-alarm-code/index.html if
> this might be
> > of interest to any of you.
> > John
> I ran into the same thing for my lab logging scripts. Instead
> of using the windows sleep command I wrote an 'alarm' command:
> I use this to periodically snapshot log files, generate
> plots, and then upload to: http://www.leapsecond.com/lab/lab.htm
> The code should compile on unix systems as well.
> time-nuts mailing list -- time-nuts at febo.com To unsubscribe,
> go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.20.9/1294 - Release
> Date: 2/22/2008 6:39 PM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.9/1294 - Release Date: 2/22/2008
More information about the time-nuts