I saw in usleep man that :
EINVAL
usec is not smaller than 1000000. (On systems where that is considered an error.)
So i wonder if its ok to use usleep in Ubuntu with value greater than 1000000 and if not (or in case that i want to support other platforms ) what is the alternative when i need sleep for 2.2 sec (for example) .
Thank you.