?
Solved

putting a small delay in my program....

Posted on 2000-04-23
4
Medium Priority
?
362 Views
Last Modified: 2006-11-17
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
Comment
Question by:twilight_prince
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
ptmcomp earned 120 total points
ID: 2741471
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
 
LVL 7

Expert Comment

by:Motaz
ID: 2741512
you are very fast ptm,
yes it is Sleep(10);

Motaz
0
 

Author Comment

by:twilight_prince
ID: 2741534
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
 
LVL 10

Expert Comment

by:ptmcomp
ID: 2741947
You can find the documentation in Win32.hlp. I suggest to activate the full text index.
Regards, ptm.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question