libposix: add usleep

This commit is contained in:
Giacomo Tesio 2017-05-08 23:45:46 +02:00
parent d62ca1162f
commit a3791c88f7
1 changed files with 8 additions and 0 deletions

View File

@ -48,6 +48,14 @@ POSIX_sleep(unsigned int seconds)
return 0;
}
unsigned int
POSIX_usleep(unsigned int useconds)
{
sleep((microseconds+1000)/1000);
return 0;
}
clock_t
POSIX_times(int *errnop, void *buf)
{