sleep过程的参数到底是毫秒还是微秒
Sleep procedure
Delay program execution for a specified number of microseconds.
Unit
SysUtils
Category
flow control routines
Delphi syntax:
procedure Sleep(milliseconds: Cardinal);{$IFDEF MSWINDOWS} stdcall; {$ENDIF}
C++ syntax:
void Sleep(unsigned milliseconds);
Description
Sleep pauses program executions as specified by the milliseconds parameter. Under Windows, Sleep is just a link to the Sleep function in the system API. Under Linux, Sleep calls the usleep library routine.