diff options
Diffstat (limited to 'src/helpers/time/Timer.hpp')
| -rw-r--r-- | src/helpers/time/Timer.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/helpers/time/Timer.hpp b/src/helpers/time/Timer.hpp new file mode 100644 index 00000000..c21f78db --- /dev/null +++ b/src/helpers/time/Timer.hpp @@ -0,0 +1,16 @@ +#pragma once + +#include "Time.hpp" + +class CTimer { + public: + void reset(); + float getSeconds(); + float getMillis(); + const Time::steady_tp& chrono() const; + + private: + Time::steady_tp m_lastReset; + + Time::steady_dur getDuration(); +};
\ No newline at end of file |
