From 35465f27ed87646a18cd9298eae861f14385300e Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Thu, 23 Dec 2021 20:52:49 +0100 Subject: First commit: moves a simple thing on the screen --- src/timer.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/timer.h (limited to 'src/timer.h') 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 +class Timer{ + + public: + Timer(); + + void start(); + unsigned int elapsed(); + void restart(); + void wait(unsigned int millis); + void waitUntil(unsigned int millis); + + private: + Uint32 t0; +}; -- cgit v1.2.3