ajout fichiers maj_fenetre.c et .h

This commit is contained in:
2023-12-07 16:15:47 +01:00
parent 41255725d2
commit 36be240e31
4 changed files with 40 additions and 20 deletions

34
snake/time.c Normal file
View File

@@ -0,0 +1,34 @@
#include <stdlib.h>
#include <graph.h>
#include <stdio.h>
#include <maj_fenetre.h>
#define CYCLE 10000L
int main(void) {
suivant= Microsecondes()+CYCLE;
while (1!=0){
if (Microsecondes()>suivant){
/* une periode s'est écoulé */
/* prochaine date */
suivant= Microsecondes()+CYCLE;
}
}
return EXIT_SUCCESS;
}