True if it's possible to take a new step
| 144 | |
| 145 | // True if it's possible to take a new step |
| 146 | inline bool Timer::isPossibleToTakeStep(std::chrono::duration<double> timeStep) const { |
| 147 | return (mAccumulator >= timeStep); |
| 148 | } |
| 149 | |
| 150 | // Take a new step => update the timer by adding the timeStep value to the current time |
| 151 | inline void Timer::nextStep(std::chrono::duration<double> timeStep) { |