summaryrefslogtreecommitdiff
path: root/src/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer.h')
-rw-r--r--src/timer.h15
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;
+};