Solved

putting a small delay in my program....

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

Technology Partners: 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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

707 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