View unanswered posts | View active topics It is currently Sat Oct 25, 2014 7:57 am






Reply to topic  [ 3 posts ] 
Empty While loops 
Author Message
Rookie

Joined: Mon Jun 07, 2010 1:32 am
Posts: 6
Post Empty While loops
I was told that if I did not place a sleep in an empty while loop that it would sleep automatically. Is this true?


Mon Jun 07, 2010 1:38 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3227
Location: Rotterdam, The Netherlands
Post Re: Empty While loops
Is there a reason you don't want to put a Wait1Ms(1); in there? EndTimeSlice() is also an option.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Jun 07, 2010 9:50 am
Profile WWW
Rookie

Joined: Mon Jun 07, 2010 1:32 am
Posts: 6
Post Re: Empty While loops
There isn't really a reason. I just didn't know about the command to end a time slice so I was trying to figure out how long to have it wait. I figured if it did it on its own, it would be easiest that way. Thanks for your help!


Mon Jun 07, 2010 11:56 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.