Files
RedBear-OS/tests/unistd/sleep.c
T

16 lines
267 B
C

#include <time.h>
#include <unistd.h>
#include <stdio.h>
#include "test_helpers.h"
int main(void) {
sleep(2);
perror("sleep");
usleep(1000);
perror("usleep");
struct timespec tm = {0, 10000};
nanosleep(&tm, NULL);
perror("nanosleep");
}