2023-11-22 19:53:24 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
2023-11-22 20:21:23 +01:00
|
|
|
/*pas d'affichage prévu*/
|
2023-11-22 19:53:24 +01:00
|
|
|
/*timer de base (à mettre plus tard dans un fichier makefile)*/
|
|
|
|
int main(void){
|
|
|
|
int seconde=0;
|
|
|
|
int minute=0;
|
|
|
|
|
|
|
|
while(1) {
|
|
|
|
sleep(1);
|
|
|
|
seconde=seconde+1;
|
|
|
|
if(seconde>=60) {
|
|
|
|
seconde=0;
|
|
|
|
minute=minute+1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|