On 12/20/06, 1512 1521 <[EMAIL PROTECTED]> wrote:
I need to create a for loop for 10ms, how can I calculate 10 ms?
for (i=0,i<??,i++) =>10ms
....
...
...
for (i=0,i<??,i++) =>10ms
You can't. You should use timer functions for this, like the POSIX functions
sleep, alarm, etc. If you are using Win32, there are equivalent functions, I
am sure (I don't know what they are), refer to the documentation for your
compiler
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi