diff options
Diffstat (limited to 'src/helpers/Timer.hpp')
| -rw-r--r-- | src/helpers/Timer.hpp | 15 |
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 |
