aboutsummaryrefslogtreecommitdiff
path: root/include/dchat/Clock.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/dchat/Clock.hpp')
-rw-r--r--include/dchat/Clock.hpp16
1 files changed, 16 insertions, 0 deletions
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