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.
COKEDUDE
27
Junior Poster in Training
Recommended Answers
Jump to PostTo address the question directly, I would want to know, how long are you setting
sleep()
.usleep()
, andnanosleep()
for, repsectively? Whilesleep()
takes an argument in seconds,usleep()
takes one in microseconds, andnanosleep()
(as the name implies) takes a structure that has both seconds and nanoseconds. if you …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.