Is there a good way to slow down program output? usleep and nanosleep don't slow it down enough, delay doesn't work, and sleep keeps freezing my program. I am using Linux since I think this makes a difference in what I have to use.
Jump to Post
To address the question directly, I would want to know, how long are you setting
nanosleep()for, repsectively? While
sleep()takes an argument in seconds,
usleep()takes one in microseconds, and
nanosleep()(as the name implies) takes a structure that has both seconds and nanoseconds. if you …
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.