Developpement/23DEV1.1/TPS1/TP2/controle/Ralenti.c

18 lines
306 B
C
Raw Normal View History

2024-12-09 11:53:11 +01:00
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int main(void)
{
struct timespec tim, tim2;
tim.tv_sec = 1;
tim.tv_nsec = 2;
if(nanosleep(&tim , &tim2) < 0 )
{
printf("Nano sleep system call failed \n");
return -1;
}
printf("ERREUR\n");
return EXIT_SUCCESS;
}