summaryrefslogtreecommitdiff
path: root/src/timer.h
blob: 3c714a9db1225f422dfd00d08ea911f97de73e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<SDL2/SDL.h>
class Timer{

    public:
        Timer();

        void start();
        unsigned int elapsed();
        void restart();
        void wait(unsigned int millis);
        void waitUntil(unsigned int millis);

    private:
        Uint32 t0;
};