• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 364
  • Last Modified:

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?
0
twilight_prince
Asked:
twilight_prince
  • 2
1 Solution
 
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now