ROBOTC.net forums
http://www.robotc.net/forums/

Sleep vs. Wait
http://www.robotc.net/forums/viewtopic.php?f=69&t=8180
Page 1 of 1

Author:  Sean [ Tue Mar 11, 2014 1:18 pm ]
Post subject:  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...???...???

Author:  rcahoon [ Mon Mar 17, 2014 12:46 pm ]
Post subject:  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

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/