test
This commit is contained in:
parent
c105dcc6e4
commit
438547e390
25
src/timer.c
25
src/timer.c
@ -1,28 +1,25 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#include<graph.h>
|
||||
#define delta 1000000L
|
||||
|
||||
void creer_timer(void){
|
||||
int sec;
|
||||
unsigned long temps;
|
||||
int sec = 0,mil_sec=0,min=0;
|
||||
unsigned long temps = 0;
|
||||
printf("temps : %lu\n",temps);
|
||||
while(min<=2){
|
||||
printf("[%d:%d,%d]\n",min,sec,mil_sec);
|
||||
temps=Microsecondes();
|
||||
while(sec!=10){
|
||||
temps=Microsecondes+delta;
|
||||
printf("%d\n",sec);
|
||||
sec=temps%11;
|
||||
printf("temps : %lu\n",temps);
|
||||
sec=(temps/1000000)%60;
|
||||
mil_sec=(temps/1000)%101;
|
||||
min=(temps/60000000)%60;
|
||||
printf("[%d:%d,%d]\n",min,sec,mil_sec);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int main(void){
|
||||
InitialiserGraphique();
|
||||
CreerFenetre(0,0,1300,1300);
|
||||
creer_timer();
|
||||
FermerGraphique();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue
Block a user