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/layer.cc | |
| parent | f16c927ab9083ac4d0ce38ec3b62ca8677055b90 (diff) | |
Fix potential clock domain mismatch when using chrono::now()
Diffstat (limited to 'src/layer.cc')
| -rw-r--r-- | src/layer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layer.cc b/src/layer.cc index 24898a3..b4766eb 100644 --- a/src/layer.cc +++ b/src/layer.cc @@ -438,7 +438,7 @@ vkQueueSubmit(VkQueue queue, std::uint32_t submit_count, // more explicit + insurance if that changes. auto handles = std::vector<std::shared_ptr<TimestampPool::Handle>>{}; - const auto now = std::chrono::steady_clock::now(); + const auto now = DeviceContext::Clock::now(); std::ranges::transform( std::span{submit_infos, submit_count}, std::back_inserter(next_submits), @@ -489,7 +489,7 @@ vkQueueSubmit2(VkQueue queue, std::uint32_t submit_count, auto next_cbs = std::vector<std::unique_ptr<cbs_t>>{}; auto handles = std::vector<std::shared_ptr<TimestampPool::Handle>>{}; - const auto now = std::chrono::steady_clock::now(); + const auto now = DeviceContext::Clock::now(); std::ranges::transform( std::span{submit_infos, submit_count}, std::back_inserter(next_submits), |
