just store the current time in a variable whenever the cycle starts and compare that to ofGetElapsedTimeMillis every frame instead of getting the absolute value. you can reset that timer but it's not very good idea since you might want to use it for something else with a different frequency.
↧