From 5c6f34163b68c725b14e5a56390c747a7964e078 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Tue, 18 Nov 2025 01:11:35 -0500 Subject: [PATCH] Fix copy-paste error of calculation of suspending time in Clock.cpp (#85545) We should be assigning the value to suspension, not continuous! --- stdlib/public/Concurrency/Clock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/public/Concurrency/Clock.cpp b/stdlib/public/Concurrency/Clock.cpp index fd51110d473..d11d31f2f8b 100644 --- a/stdlib/public/Concurrency/Clock.cpp +++ b/stdlib/public/Concurrency/Clock.cpp @@ -188,8 +188,8 @@ switch (clock_id) { #elif WE_HAVE_STD_CHRONO auto num = std::chrono::steady_clock::period::num; auto den = std::chrono::steady_clock::period::den; - continuous.tv_sec = num / den; - continuous.tv_nsec = (num * 1'000'000'000ll) % den + suspending.tv_sec = num / den; + suspending.tv_nsec = (num * 1'000'000'000ll) % den #else #error Missing platform suspending time definition #endif