mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 21:51:53 +01:00
17 lines
360 B
C
17 lines
360 B
C
|
#include "wut_newlib.h"
|
||
|
|
||
|
#include <coreinit/thread.h>
|
||
|
#include <coreinit/systeminfo.h>
|
||
|
#include <coreinit/time.h>
|
||
|
|
||
|
int
|
||
|
__wut_nanosleep(const struct timespec *req,
|
||
|
struct timespec *rem)
|
||
|
{
|
||
|
OSSleepTicks(OSSecondsToTicks(req->tv_sec) +
|
||
|
OSNanosecondsToTicks(req->tv_nsec));
|
||
|
rem->tv_sec = 0;
|
||
|
rem->tv_nsec = 0;
|
||
|
return 0;
|
||
|
}
|