Sleep

From PortaWiki

Jump to: navigation, search

On Windows it's Sleep(milliseconds).

Netware has delay(milliseconds).

OS2 has DosSleep(milliseconds).

At least in the mysys library (the portability layer in MySQL) the Netware, Windows and OS2 versions add 1 to the milliseconds. I'm not sure why this is.

You can simulate sleep using select with all parameters null except for the timeval.

Personal tools