Solved

putting a small delay in my program....

Posted on 2000-04-23
4
359 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 30 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

696 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