View unanswered posts | View active topics It is currently Fri Oct 31, 2014 5:10 am






Reply to topic  [ 2 posts ] 
Sleep vs. Wait 
Author Message
Rookie

Joined: Sun Feb 23, 2014 3:56 pm
Posts: 8
Post Sleep vs. Wait
What is the difference between “wait” and “sleep”? I’m curious as to the technical and application differences between the two. Or are they exactly the same...???...???


Tue Mar 11, 2014 1:18 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Tue Oct 09, 2012 10:34 am
Posts: 192
Post Re: Sleep vs. Wait
Hi Sean,
Sleep(mSec) is a synonym for wait1Msec(mSec), so the parameter is in milliseconds. wait(seconds) is a Natural Language command; the parameter is in seconds. wait is actually implemented using wait1Msec and wait10Msec - you can see this by typing wait into your program, then right click on it and select "Go to definition/declaration."

Cheers,
--Ryan

_________________
Ryan Cahoon
CMU Robotics Academy
RVW Software Developer

Robot Potato Head; Virtual NXT


Mon Mar 17, 2014 12:46 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.