[mythtvnz] Sky setup...
Jim Cheetham
jim at gonzul.net
Sat Jan 16 00:09:47 GMT 2010
There are a couple of approaches to sleeping for less than a second in
perl. One is to use the usleep() function from Time::HiRes
http://perldoc.perl.org/Time/HiRes.html; but getting that installed
and available to your scripts might not be straightforward, depending
on how they are being invoked.
The other is to use a side-effect of the select() function; the fourth
argument is a fractional timeout, so you can say
select undef, undef, undef, 0.2;
to get a 0.2 second delay.
-jim
More information about the mythtvnz
mailing list