FreeBASIC  0.91.0
sys_delay.c
Go to the documentation of this file.
1 #include "../fb.h"
2 #include <sys/select.h>
3 
4 FBCALL void fb_Delay( int msecs )
5 {
6  struct timeval tv;
7  tv.tv_sec = msecs / 1000;
8  tv.tv_usec = (msecs % 1000) * 1000;
9  select(0, NULL, NULL, NULL, &tv);
10 }