v1.1.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
List of all members
Sifteo::TimeTicker Class Reference

TimeTicker is a utility for converting a stream of time deltas into a stream of discrete ticks. More...

#include <sifteo/time.h>

Detailed Description

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().


The documentation for this class was generated from the following file: