From 8ea01a571be073be00f8a77150f3d62ef5600b52 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Thu, 12 Mar 2026 20:42:37 +1100 Subject: Fix potential clock domain mismatch when using chrono::now() --- src/timestamp_pool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timestamp_pool.cc') diff --git a/src/timestamp_pool.cc b/src/timestamp_pool.cc index 4ca1d5a..e02a4fc 100644 --- a/src/timestamp_pool.cc +++ b/src/timestamp_pool.cc @@ -167,7 +167,7 @@ TimestampPool::Handle::get_time_spinlock( auto time = this->get_time(); for (; !time.has_value(); time = this->get_time()) { - if (const auto now = std::chrono::steady_clock::now(); now >= until) { + if (const auto now = DeviceContext::Clock::now(); now >= until) { break; } } -- cgit v1.2.3