wut/libraries/wutnewlib/sleep.c
James Benton ac8a42fa7c Change to using new gthreads implementation.
Assuming that --enable-threads=dkp gets merged into devkitPPC r31... :)
2018-05-26 18:25:36 +01:00

17 lines
298 B
C

#include <coreinit/thread.h>
#include <coreinit/systeminfo.h>
#include <coreinit/time.h>
#include <unistd.h>
unsigned sleep(unsigned seconds)
{
OSSleepTicks(OSSeconds(seconds));
return 0;
}
int usleep(useconds_t microseconds)
{
OSSleepTicks(OSMicroseconds(microseconds));
return 0;
}