From 43dabf2968ac70ca05ad93b2bc3acf13dc3e3fb3 Mon Sep 17 00:00:00 2001 From: orfao Date: Sat, 2 Dec 2023 10:13:12 +0100 Subject: [PATCH] maj --- src/timer.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/timer.c 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