diff --git a/src/timer.c b/src/timer.c new file mode 100644 index 0000000..73a921a --- /dev/null +++ b/src/timer.c @@ -0,0 +1,28 @@ +#include +#include +#include +#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(); +} \ No newline at end of file