rem: tv_delay.tv_usec = ts_delay->tv_nsec / 1000;
add: tv_delay.tv_usec = (ts_delay->tv_nsec + 999) / 1000; if (tv_delay.tv_usec == 1000000) { tv_delay.tv_sec++; tv_delay.tv_usec = 0; }
context: my_usleep (const struct timespec *ts_delay){  struct timeval tv_delay;  tv_delay.tv_sec = ts_delay->tv_sec;  tv_delay.tv_usec = ts_delay->tv_nsec / 1000;  select (0, (void *) 0, (void *) 0, (void *) 0, &tv_delay);}