/* floatTime functions is stolen from the quake1 src but modified to suit us better. */ #ifndef _time_hh_ #define _time_hh_ #define KEYFRAME_LENGTH 0.05 #include class Time { long int fps; double lastKey; double oldTime; double speed; long rounds; public: double floatTime(); double floatTimeU(); Time(); void reset(); void addRound(); long getRound(); bool round(); double worldSpeed(); float getFps(); }; extern Time timeing; #endif