Hi -

Check out Time::HiRes - has alarms, high res.

Works fine on *nix boxes, but alarms don't work
on Win32

Aloha => Beau.

-----Original Message-----
From: Greg Oliver [mailto:greg@;algx.net]
Sent: Thursday, October 17, 2002 2:53 PM
To: [EMAIL PROTECTED]
Subject: time references


I am writing a program that will do a certain function every 5 seconds.
Currently, I am testing the modulus of time() / 5 to do the function in a
tight loop, but that seems pretty sloppy to me.  Unfortunately, I do not
know of any other ways.

I have looked through all of the Time:: modules on CPAN.

The process I am executing takes ~1 second to run, so after I have the
script sleep(3) to cut down on the resources.  Is there something simple I
am missing here that I could use to do what i want?

Thanks,

Greg

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to