Actually i´m trying to speed up communications. I´m talking to a microcontroller, and it havent a buffer of received data, so i need to send it a byte, wait a little and send some more data. I had sent some data in sequence and it lost some bytes. Using sleep it works, but 1 second it a lot of time... using it i´ll send only 1000 byte in a second. Had you read my other question about COM speed?
----- Original Message ----- From: "David J Taylor" <[EMAIL PROTECTED]> To: "Borland's Delphi Discussion List" <[email protected]> Sent: Tuesday, September 06, 2005 10:16 AM Subject: Re: How to make a delay faster then sleep Moacir Flávio Gonçalves wrote: > How can I have a delay like sleep, but with faster, less than 1 ms? You could try using QueryPerformanceCounter API, but there is no guarantee what the maximum delay will be as Windows is not a real-time OS. If you are trying to slow-down serial communications, you could reduce the baud rate. David _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

