summaryrefslogtreecommitdiff
path: root/src/helpers/Timer.hpp
diff options
context:
space:
mode:
authorxDarksome <dev@darkso.me>2022-06-26 19:20:20 +0300
committerGitHub <noreply@github.com>2022-06-26 19:20:20 +0300
commit504f76112aec3625f2d67f9289a48a01bc90cb50 (patch)
treef3a4c5176a2d8f1954a7632b542f829e994c8529 /src/helpers/Timer.hpp
parentbe460ea9547691eb136bf8b600b67b778af47e3f (diff)
parentf1a5cb4979f312f56967888c2b1b6d2aa535bb9e (diff)
Merge branch 'hyprwm:main' into main
Diffstat (limited to 'src/helpers/Timer.hpp')
-rw-r--r--src/helpers/Timer.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/helpers/Timer.hpp b/src/helpers/Timer.hpp
new file mode 100644
index 00000000..2e8d6adc
--- /dev/null
+++ b/src/helpers/Timer.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "../defines.hpp"
+
+class CTimer {
+public:
+ void reset();
+ float getSeconds();
+ int getMillis();
+
+private:
+ std::chrono::system_clock::time_point m_tpLastReset;
+
+ std::chrono::system_clock::duration getDuration();
+}; \ No newline at end of file