This commit is contained in:
van Hauser 2017-07-07 11:21:46 +02:00
parent 185021d474
commit 1a72fe023e
18 changed files with 60 additions and 66 deletions

View file

@ -9,7 +9,7 @@ int32_t sleepn(time_t seconds)
ts.tv_nsec = 0;
return nanosleep(&ts, NULL);
}
int32_t usleepn(int64_t milisec) {
int32_t usleepn(uint64_t milisec) {
struct timespec ts;
ts.tv_sec = milisec / 1000;
ts.tv_nsec = (milisec % 1000) * 1000000L;