#include int sleepSeconds (int sec) { struct timespec delay; delay.tv_sec = sec; delay.tv_nsec = 0; return nanosleep (&delay, NULL); }