MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / reset

Method reset

testbed/src/Timer.h:139–143  ·  view source on GitHub ↗

Reset the timer to zero

Source from the content-addressed store, hash-verified

137
138// Reset the timer to zero
139inline void Timer::reset() {
140 mAccumulator = std::chrono::milliseconds::zero();
141 mStartTime = clock::now();
142 mLastUpdateTime = mStartTime;
143}
144
145// True if it's possible to take a new step
146inline bool Timer::isPossibleToTakeStep(std::chrono::duration<double> timeStep) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected