putting a small delay in my program....

hi,
this is an easy question but please bear with me. i have a simple while loop, all i want to do is put a delay in it of about 10 milli seconds. in C i would use the "delay" function or sleep or usleep. how do i do this in delphi?
twilight_princeAsked:
Who is Participating?
 
ptmcompCommented:
Just use Sleep(10). (It uses the unit windows.pas. The delay does not use cpu time, the 10 mili seconds are free for other tasks.)
ptm.
0
 
MotazCommented:
you are very fast ptm,
yes it is Sleep(10);

Motaz
0
 
twilight_princeAuthor Commented:
thanks a lot ptm. i actually looked in the help files for sleep, usleep, delay and all the others, didn't find anything there. where is the documentation for all of them?
0
 
ptmcompCommented:
You can find the documentation in Win32.hlp. I suggest to activate the full text index.
Regards, ptm.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.