Ajout du makefile

This commit is contained in:
Axel PIETROIS 2022-12-08 21:56:21 +01:00
parent eb940975fd
commit 642a480392
2 changed files with 5 additions and 4 deletions

View File

@ -2,11 +2,12 @@
#include <graph.h>
#include <stdio.h>
void timer(unsigned long* temps_ecoule, unsigned long temps_microsec){
unsigned long timer(unsigned long temps_ecoule, unsigned long temps_microsec){
unsigned long temps_actuel = Microsecondes();
if (temps_actuel > temps_microsec + 1000000){
temps_microsec = temps_actuel;
*temps_ecoule++;
printf("%d",*temps_ecoule);
temps_ecoule += 1;
printf("%d",temps_ecoule);
}
return temps_ecoule;
}

View File

@ -3,6 +3,6 @@
#define TIMER_H
void timer(unsigned long* temps_ecoule, unsigned long temps_microsec);
unsigned long timer(unsigned long temps_ecoule, unsigned long temps_microsec);
#endif /* TIMER_H */