TimeTicker is a utility for converting a stream of time deltas into a stream of discrete ticks. More...
#include <sifteo/time.h>
TimeTicker is a utility for converting a stream of time deltas into a stream of discrete ticks.
It can be used, for example, to advance an animation to the next frame, or to run a fixed-timestep physics simulation.
The Ticker is initialized with a particular tick rate, in Hz. You feed in TimeDeltas (from a TimeStep object or any other source), and this object returns the number of discrete steps that have occurred, while saving the remainder for later.
This class is implemented using TimeDelta::pullFrames().
Sifteo SDK v1.1.0 (see all versions)
Last updated Tue Dec 23 2014, by Doxygen