From dfb98b4b2f6bd1396f03558d35f1cf7de5f80265 Mon Sep 17 00:00:00 2001 From: orfao Date: Tue, 5 Dec 2023 21:22:05 +0100 Subject: [PATCH] ajout test timer graphique --- src/timer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/timer.c b/src/timer.c index 9946896..ec2c69e 100644 --- a/src/timer.c +++ b/src/timer.c @@ -2,16 +2,21 @@ #include #include +void afficher_timer(void){ + EcrireTexte(0,0,coucou,2); +} + void creer_timer(void){ int sec = 0,mil_sec=0,min=0; unsigned long temps = 0,t1=0; t1=Microsecondes(); - while(sec<=12){ + while(min<=12){ printf("[%0.2d:%0.2d]\n",min,sec); temps=Microsecondes()-t1; min=(temps/60000000)%60; temps=temps%60000000; sec=(temps/1000000)%60; + EcrireTexte(); } }