💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Tetris › files › dbe19256437fe5e2dcc84759767… captured on 2023-12-28 at 15:48:32. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-09-08)

-=-=-=-=-=-=-

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