4 * Created on: Apr 25, 2012
13 /// Objects of class keep track of the current delta and the time elapsed since
14 /// their respective incarnation (which may also be tampered with).
15 /// It's also possible to scale the time e.g. for slow-motion or fast-forwarding.
19 explicit Timer(double scale = 1.0, double initialTime = 0.0)
20 : scale(scale), elapsed(initialTime), delta(0.0) { };
23 void Update(double dt);
26 double DeltaT(void) const { return delta; };
27 double Elapsed(void) const;
30 double scale, elapsed, delta;
36 #endif /* APP_TIMER_H_ */