6701Fermer6703
squalylLe 07/09/2015 à 22:40
Folco:
si tu veux mesurer un délai T,

t'as par exemple une auto-int 5 qui fait counter++

si tu fais
tic = counter
.....
if(counter > (tic+T)) { ca foire si counter a fait son rollover au milieu}

il faut faire

tic = counter
.....
if ( (counter - tic) > T) { c'est toujours bon }

smile