#define __SUPERTUX_TIMER_H__
extern float game_time;
+extern float real_time;
/**
* Simple timer designed to be used in the update functions of objects
~Timer();
/** start the timer with the given period (in seconds).
- * If cyclic=true then the timer willl be reset after each period.
+ * If cyclic=true then the timer will be reset after each period.
* Set period to zero if you want to disable the timer.
*/
void start(float period, bool cyclic = false);
/** returns true if a period (or more) passed since start call or last
- * successfull check
+ * successful check
*/
bool check();
/** stop the timer */
};
#endif
-