Вопрос

I know it's a newbie question but I am struggling with this and don't understand nanosleep() well enough.

How can I make a process sleep a random time between 100 and 200 miliseconds?

Это было полезно?

Решение

A millisecond is (corrected, sorry, blah...) 1,000,000 nanoseconds. Multiply appropriately.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top