diff options
Diffstat (limited to 'inc/timer.hpp')
-rw-r--r-- | inc/timer.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/inc/timer.hpp b/inc/timer.hpp new file mode 100644 index 0000000..1213311 --- /dev/null +++ b/inc/timer.hpp @@ -0,0 +1,25 @@ +#ifndef timer_h +#define timer_h + +#include "window.hpp" + +class Timer +{ + public: + Timer(); + void Start(); + void Stop(); + void Pause(); + void unPause(); + int getTicks(); + bool isStarted(){return started;}; + bool isPaused(){return paused;}; + + private: + int startTicks; + int pausedTicks; + bool paused; + bool started; +}; + +#endif |