View Single Post
  #3   Spotlight this post!  
Unread 02-05-2007, 19:19
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,770
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: quick/stupid question

As fast as your code will execute.
The more streamlined your code is, the faster it will loop.
The time of each pass through will vary as different decisions are made, different branches are taken, more complex calculations or indexing is performed, interrupts occur.
Each slow-loop will of course slow down the fast loop during which it happens to occur, because of the extra processing.
What we talk of as the "slow-loop" is only a different branch decision made inside the fast loop.

The streamlined default code probably loops roughly on the order of magnitude of 100,000 times per second.
The clock is 10MHz, so no faster than that
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-05-2007 at 19:47.