40 #if defined(HAVE_NANOSLEEP)
55 #if defined(HAVE_NANOSLEEP)
56 t->tv_sec = (time_t)floor(d);
57 t->tv_nsec = (long)floor((d - t->tv_sec)*1000000000);
58 #elif defined(HAVE_USLEEP)
59 *t = (
unsigned long)floor(d*1000000);
60 #elif defined(HAVE_SLEEP)
62 *t = (
unsigned int)floor(d);
76 #if defined(HAVE_NANOSLEEP)
77 *d = ((
doublereal)(t->tv_nsec))/1000000000 + t->tv_sec;
78 #elif defined(HAVE_USLEEP)
80 #elif defined(HAVE_SLEEP)
92 #if defined(HAVE_NANOSLEEP)
93 return nanosleep(t, NULL);
94 #elif defined(HAVE_USLEEP)
96 #elif defined(HAVE_SLEEP)
int mbsleep(const mbsleep_t *t)
int mbsleep_sleep2real(const mbsleep_t *t, doublereal *d)
mbsleep_t mbsleep_init(long t)
int mbsleep_real2sleep(doublereal d, mbsleep_t *t)