Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: making something happen in real time

by lidden (Curate)
on Nov 06, 2005 at 19:31 UTC ( [id://506143] : note . print w/replies, xml ) Need Help??


in reply to making something happen in real time

Seems to me you should use Time::HiRes. I use that one combined with Tk's after metod and it works well for me but my prog can have larger errors then yours.

Replies are listed 'Best First'.
Re^2: making something happen in real time
by bcrowell2 (Friar) on Nov 06, 2005 at 20:07 UTC
    Seems to me you should use Time::HiRes.
    Ah, thanks, that's helpful! That fixes the portability problem with using `date`. Calling Time::HiRes::usleep instead of using select didn't fix the latency problem, though.