> Is there a replacement for the sleep() function? > > I just wanted to have a loop sleep for about 30 milliseconds at the end > of each loop, but it appears that FPC doesn't include sleep(). Nanosleep() or tv.u_sec=0; tv.u_msec=0; Select(0,NULL,NULL,NULL,tv); (maybe the field names are not correct)