This commit is contained in:
Marco ORFAO 2023-12-02 10:13:12 +01:00
parent 0808392a9b
commit 43dabf2968

28
src/timer.c Normal file
View File

@ -0,0 +1,28 @@
#include<stdio.h>
#include<stdlib.h>
#include<graph.h>
#define delta 1000000L
void creer_timer(void){
int sec;
unsigned long temps;
temps=Microsecondes();
while(sec!=10){
temps=Microsecondes+delta;
printf("%d\n",sec);
sec=temps%11;
}
}
int main(void){
InitialiserGraphique();
CreerFenetre(0,0,1300,1300);
creer_timer();
FermerGraphique();
}