mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-22 03:10:08 +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();
|
||
|
|
};
|