From b1296f2c97c6fdc1c6a9922dc09c951b5cafdc12 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 29 Oct 2018 21:49:54 +0100 Subject: Initial commit --- include/dchat/Clock.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/dchat/Clock.hpp (limited to 'include/dchat/Clock.hpp') diff --git a/include/dchat/Clock.hpp b/include/dchat/Clock.hpp new file mode 100644 index 0000000..97f78a8 --- /dev/null +++ b/include/dchat/Clock.hpp @@ -0,0 +1,16 @@ +#pragma once + +#include "types.hpp" + +namespace dchat +{ + class Clock + { + public: + Clock(); + void restart(); + i64 getElapsedTimeMillis() const; + private: + i64 startTime; + }; +} \ No newline at end of file -- cgit v1.2.3