libposix: add usleep
This commit is contained in:
parent
d62ca1162f
commit
a3791c88f7
@ -48,6 +48,14 @@ POSIX_sleep(unsigned int seconds)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned int
|
||||||
|
POSIX_usleep(unsigned int useconds)
|
||||||
|
{
|
||||||
|
sleep((microseconds+1000)/1000);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
clock_t
|
clock_t
|
||||||
POSIX_times(int *errnop, void *buf)
|
POSIX_times(int *errnop, void *buf)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user