summaryrefslogtreecommitdiff
path: root/inc/sdl/timer.hpp
blob: 3bcaaaa2ccff43e19bb3f63f1902fa0e7b80cfd8 (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
26
27
#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    getStarted(){return started;};
                bool    getPaused(){return paused;};

        private:
                int     startTicks;
                int     pausedTicks;
                bool    paused;
                bool    started;
};

#endif