Eion,
The "sleep command" is actually a WinApi function and therefore is
documented in the WinApi help. Sleep and sleepEx only sleeps the thread
(not the application, or the rest of the machine). Sleep the main thread
and your application will not respond for the sleep duration! Also note
that sleep is not very accurate - I won't use it for critical timing.
Regards,
Dennis.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 17 May 2001 08:27
> To: Multiple recipients of list delphi
> Subject: [DUG]: Sleep Command
>
>
> Hi
>
> I'm sorry if you received again but I sent this late yesterday
> afternoon and
> I haven't seen it come back to me from the group so I'm trying again.
>
> I have noticed in a passing message the 'Sleep' command which I think will
> be handy for a problem we have.
> We are currently using a counter up to a certain number, but it varies
> depending on the CPU speed.
> We are using Delphi 4 and this I cannot find this command in the help at
> all. It mentions Sleeptime relating to
> FTP, HTTP etc. No wonder I didn't think there was one available!
>
> My question is I expect this only sleeps the application but does
> any think
> that any disk cache left for flushing would
> flush during or immediately after this period?
>
> Thanks
> Eion McIntosh
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"