View Single Post
  #5   Spotlight this post!  
Unread 24-03-2012, 22:09
thecakeisalie's Avatar
thecakeisalie thecakeisalie is offline
Registered User
FRC #0293
 
Join Date: Mar 2012
Location: Pennington
Posts: 37
thecakeisalie is an unknown quantity at this point
Re: Wait/Pause function?

Quote:
Originally Posted by rbmj View Post
You can try Wait(double) in Timer.h

And that's just a simple two instruction loop. It won't occupy the processor for long (though it will waste computing power when compared to a yield AFAIK), it won't be reliable (timing could change very easily based on process scheduling), and it may be optimized out by the compiler.
Thanks, I shall try your suggestion.
Reply With Quote