I\'m fairly new to C but writing a small multithreaded application. I want to introduce a delay to a thread. I\'d been using \'usleep\' and the behavior is what I desire -
And you can use some of the similar methods instead: nanosleep() for nanoseconds and sleep() for seconds. Or another way could be using clock(), but i think this is more CPU wasting.