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

Re^4: making something happen in real time

by bcrowell2 (Friar)
on Nov 07, 2005 at 02:38 UTC ( [id://506213]=note: print w/replies, xml ) Need Help??


in reply to Re^3: making something happen in real time
in thread making something happen in real time

My point is that you have to ask for the time before every sleep. I don't see your code, so you might already be doing that.
I've posted my code.

Of course, if you spawn an external process for querying the time, then that's slow, so don't do that.
Starting up a new process takes a short, predictable time. (The time to start the external "play" utility and start playing the sound is less than ~1 ms, which is negligible for my purposes.) My problem is latency, which is a long and unpredictable time period, often hundreds of milliseconds before my process gets control back from xscreensaver.

  • Comment on Re^4: making something happen in real time

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-23 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found