SAE11_2023/src/timer.c

28 lines
408 B
C
Raw Normal View History

2023-12-02 10:13:12 +01:00
#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();
}