Hyprland/src/helpers/Timer.hpp
2022-06-24 23:27:02 +02:00

15 lines
No EOL
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();
};