maj
This commit is contained in:
parent
0808392a9b
commit
43dabf2968
28
src/timer.c
Normal file
28
src/timer.c
Normal 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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user