[fpc-pascal] Various Darwin problems
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Oct 11 13:58:23 CEST 2005
On 11 okt 2005, at 13:46, Marco van de Voort wrote:
> The sleep was changed from select to nanosleep. It seems OS X
> doesn't accept
> sleeps smaller than 10ms.
That is not true. This program takes half a second on my machine:
#include <time.h>
int main() {
struct timespec t1;
int i;
t1.tv_sec = 0;
t1.tv_nsec = 5*1000*1000;
for (i = 0; i < 100; i++) {
nanosleep(&t1,NULL);
}
}
Jonas
More information about the fpc-pascal
mailing list