View Single Post
  #5   Spotlight this post!  
Unread 18-02-2012, 11:25
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: What is the point of timer.delay?

Quote:
Originally Posted by Lalaland1125 View Post
Just double checking, won't timer.delay also pretty much freeze the thread that the robot is running under,
Yes, if by "freeze the thread" you mean "nothing else in that thread will execute until the delay expires".

Quote:
so if you are running a single threaded robot the robot will completely freeze for that amount of time?
Nothing else in that single thread will execute until the delay expires. So if that's what you mean by "the robot will completely freeze for that amount of time", then yes.



Last edited by Ether : 18-02-2012 at 11:38. Reason: edited for clarity
Reply With Quote