summaryrefslogtreecommitdiff
path: root/inc/timer.hpp
blob: 121331157f38df044c670440bbe03bc4d5f96a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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