added general:cursor_inactive_timeout
This commit is contained in:
parent
eb13be1240
commit
72c86b99eb
8 changed files with 79 additions and 0 deletions
15
src/helpers/Timer.hpp
Normal file
15
src/helpers/Timer.hpp
Normal file
|
|
@ -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();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue