From 02dbc3d9260fa1137e8ebc99ad439fc555d81fd2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 4 Sep 2025 23:01:12 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell-plugins/Chrono.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'accounts/gkleen@sif/shell') diff --git a/accounts/gkleen@sif/shell/quickshell-plugins/Chrono.cpp b/accounts/gkleen@sif/shell/quickshell-plugins/Chrono.cpp index bc765f21..22b3469b 100644 --- a/accounts/gkleen@sif/shell/quickshell-plugins/Chrono.cpp +++ b/accounts/gkleen@sif/shell/quickshell-plugins/Chrono.cpp @@ -58,6 +58,8 @@ void Chrono::setTime(const std::chrono::time_point& t } void Chrono::schedule(const std::chrono::time_point& targetTime) { + using namespace std::chrono_literals; + auto currentTime = std::chrono::system_clock::now(); auto offset = std::chrono::duration_cast(targetTime - currentTime); auto nextTime = abs(offset) < 500ms ? targetTime : currentTime; -- cgit v1.2.3