Back to index

php5  5.3.10
unistd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


PHPAPI int usleep (unsigned int useconds)

Function Documentation

PHPAPI int usleep ( unsigned int  useconds)

Definition at line 130 of file time.c.

       HANDLE timer;
       LARGE_INTEGER due;

       due.QuadPart = -(10 * (__int64)useconds);

       timer = CreateWaitableTimer(NULL, TRUE, NULL);
       SetWaitableTimer(timer, &due, 0, NULL, NULL, 0);
       WaitForSingleObject(timer, INFINITE);
       return 0;

Here is the caller graph for this function: