mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-01 22:57:58 +02:00
16 lines
324 B
C++
16 lines
324 B
C++
#pragma once
|
|
|
|
#include "Time.hpp"
|
|
|
|
class CTimer {
|
|
public:
|
|
void reset();
|
|
float getSeconds() const;
|
|
float getMillis() const;
|
|
const Time::steady_tp& chrono() const;
|
|
|
|
private:
|
|
Time::steady_tp m_lastReset;
|
|
|
|
Time::steady_dur getDuration() const;
|
|
};
|