usleep() is deprecated, POSIX.1-2008 removes the specification of usleep()