Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/28/07 00:17
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#141311 - Don't use for delays
Responding to: ???'s previous message
L .sunder Murthy said:
for(i=0;i<500;i++);//delay


Using "for" loops in 'C' as timing delays is extremely bad practice and not recommended. At best it's imprecise, at worst the compiler optimization may eliminate the "delay" completely.

Regards,
Craig Steiner


List of 3 messages in thread
TopicAuthorDate
Ads 1256            01/01/70 00:00      
   Code not complete            01/01/70 00:00      
   Don't use for delays            01/01/70 00:00      

Back to Subject List