Go Back

0 /* See LICENSE file for copyright and license details. */

1 #ifdef __linux__

2 #include <aio.h>

3 #endif

4 #include <sys/select.h>

5 #include <stdlib.h>

6

7 void ansi_sleep(long micro) {

8 struct timeval tv;

9 tv.tv_sec = micro / (1000 * 1000);

10 tv.tv_usec = micro % (1000 * 1000);

11 select(0, NULL, NULL, NULL, &tv);

12 }

13