diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2021-12-23 20:52:49 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2021-12-23 20:52:49 +0100 |
commit | 35465f27ed87646a18cd9298eae861f14385300e (patch) | |
tree | 7f0256d28fa6fd5368b7a39500d080456e70be8e /src/timer.h |
First commit: moves a simple thing on the screen
Diffstat (limited to 'src/timer.h')
-rw-r--r-- | src/timer.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/timer.h b/src/timer.h new file mode 100644 index 0000000..3c714a9 --- /dev/null +++ b/src/timer.h @@ -0,0 +1,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; +}; |