Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: making something happen in real time

by ambrus (Abbot)
on Nov 06, 2005 at 19:35 UTC ( [id://506144]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -we 'use Time::HiRes qw"time sleep"; use IO::Handle; $length = 60
    +/$ARGV[0]; my $next = time; for (;;) { $next += $length; $now = time;
    + sleep($next - $now); printflush STDOUT "\a."; }' 80
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://506144]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-19 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found