30 #include <sys/types.h>
44 struct timespec delay;
45 struct timespec remaining;
47 unsigned int sec = useconds / 1000000;
48 unsigned int usec = useconds % 1000000;
51 delay.tv_nsec = usec * 1000;
53 nanosleep (&delay, &remaining);
void octave_sleep(unsigned int seconds)
void octave_usleep(unsigned int useconds)