From 30c30367399b5c2fe906ac9e3361573fc408b514 Mon Sep 17 00:00:00 2001 From: VAN BOSSUYT Nicolas Date: Fri, 26 Apr 2024 17:52:11 +0200 Subject: [PATCH] test --- src/libs/karm-sys/tests/test-async-sleep.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/karm-sys/tests/test-async-sleep.cpp b/src/libs/karm-sys/tests/test-async-sleep.cpp index 3079878577..87e30c893d 100644 --- a/src/libs/karm-sys/tests/test-async-sleep.cpp +++ b/src/libs/karm-sys/tests/test-async-sleep.cpp @@ -10,10 +10,12 @@ Async::Task<> sleepyBoy() { auto start = Sys::now(); co_trya$(globalSched().sleepAsync(start + duration)); auto end = Sys::now(); + auto delta = end - start; + + logDebug("delta: {}", delta); if (end - start < duration - TimeSpan::fromMSecs(10)) co_return Error::other("sleepAsync woke up too early"); - if (end - start > duration + TimeSpan::fromMSecs(10)) co_return Error::other("sleepAsync woke up too late");