Ajout du makefile
This commit is contained in:
parent
eb940975fd
commit
642a480392
7
timer.c
7
timer.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user