mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 17:06:00 +01:00
15 lines
273 B
C++
15 lines
273 B
C++
|
#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();
|
||
|
};
|