diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-03-12 20:42:37 +1100 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-03-12 20:42:37 +1100 |
| commit | 8ea01a571be073be00f8a77150f3d62ef5600b52 (patch) | |
| tree | ab4e262cff0d591e1145e4986f2d635527f63163 /src/timestamp_pool.cc | |
| parent | f16c927ab9083ac4d0ce38ec3b62ca8677055b90 (diff) | |
Fix potential clock domain mismatch when using chrono::now()
Diffstat (limited to 'src/timestamp_pool.cc')
| -rw-r--r-- | src/timestamp_pool.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |
