Is there an alternative sleep function in C to milliseconds?
Yes – older POSIX standards defined usleep(), so this is available on Linux: DESCRIPTION The usleep() function suspends execution of the calling thread for (at least) usec microseconds. The sleep may be lengthened slightly by any system activity or by the time spent processing the call or by the granularity of system timers. usleep() takes … Read more