nanosleep

Hello,
Can anyone, please, guide me on the use of nanosleep. I'm learning threads. I want to introduce a delay (not nested for loops, something more customizable). Nanosleep looked useful (or any other form of customizable and easy-to-use delay). Sleep is too long. :slight_smile:

The man page has an example.

Thank You!! :slight_smile: