I have a float variable called accerleration which is used to determine how fast my distance counter counts. Accerleration will never be 0 but closer it is to 0, the slower this counter counts up and higher it is, the faster it counts. I know that you could do something like this:
[/code
if (accerleration < 0.1 and accerleration > 0)
if time > 0.5
count slowly
endif
resetCounter
endif]
But the problem with this is that I have a code like this:
[code if time > 0.1
//* Handle accerleration *
HandleAccerleration()
ResetTimer()
endif]
And I need to have something like this because I need my accerleration to update every .1 second. I am resetting the timer every single time I update the acceleration which doesn't give the timer enough time to go up to .5 second where this can update my counter. Is there anyway for me to have two separate timers that are independent of each other? If so, I could use one particular timer for the accerleration update while I could use the other one for the counter update.