Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
You could also try the setitimer(), or alarm(), they will let you set timer, which will go off and let you handle the signal.
----- Original Message -----
From: john sweeney <sweeney@...>
Date: Monday, November 17, 2003 11:43 pm
Subject: [Playerstage-users] Re: [Playerstage-developers] How do I make the for loop wait?
> at least two ways to do this.
> 1) keep track of time in your for loop, read the laser data every cycle,
> but only act after 1.5 seconds have passed. do a "man gettimeofday"
> for more info.
> 2) set the read mode on the PlayerClient on the laser proxy to be
> request mode, where it will always get the latest data. That way you
> can sleep at the end of your loop, but when you do perform a
> PlayerClient::Read(), you get the latest data only (you have to call
> PlayerClient::RequestData() prior to calling Read() in this case). This
> is discussed in the manual, somewhere, I'm pretty sure.
> BTW, this email more properly belongs on the "users" email list, not
> This SF. Net email is sponsored by: GoToMyPC
> GoToMyPC is the fast, easy and secure way to access your computer from
> any Web browser or wireless device. Click here to Try it Free!
> Playerstage-users mailing list