Quote:
Originally Posted by wdell
You might try replacing the sleep() function with Timer.delay(), I think that would get rid of the try..catch statements.
|
Sleep() makes the thread not runnable so it releases the processor so it doesn't waste resources polling the clock. The sleeping thread becomes runnable again when the sleep period has expired.
How is Timer.delay() implemented?