#include <time.h> int main() { struct timespec req; req.tv_sec = 0; req.tv_nsec = 1000; nanosleep(&req, NULL); return 0; }