This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

random delay .!!

Hi ..

I need help regarding writing a C code for a random delay that its duration is within 0.2 - 0.8 miliSeconds?

Parents
  • Note that 'C' (or any other High-Level Language, for that matter) is not suitable for writing busy-loop delays for any specific duration as you have absolutely no control whatsoever over what specific instructions the compiler might choose to implement the loop - nor, in fact, whether that choice might change on subsequent compilations...

Reply
  • Note that 'C' (or any other High-Level Language, for that matter) is not suitable for writing busy-loop delays for any specific duration as you have absolutely no control whatsoever over what specific instructions the compiler might choose to implement the loop - nor, in fact, whether that choice might change on subsequent compilations...

Children
No data