mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-14 07:25:58 +01:00
16 lines
No EOL
435 B
C++
16 lines
No EOL
435 B
C++
#pragma once
|
|
|
|
#include <chrono>
|
|
|
|
class CTimer {
|
|
public:
|
|
void reset();
|
|
float getSeconds();
|
|
int getMillis();
|
|
const std::chrono::system_clock::time_point& chrono() const;
|
|
|
|
private:
|
|
std::chrono::system_clock::time_point m_tpLastReset;
|
|
|
|
std::chrono::system_clock::duration getDuration();
|
|
}; |