summaryrefslogtreecommitdiff
path: root/inc/timer.hpp
blob: d4e46e8c6f41e8b01d3495b9d29ac271326e258b (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 <SDL2/SDL.h>

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