Skip to content

Add CreateAndFreezeTimes, used to keep track of when flushes started#37219

Merged
arnej27959 merged 2 commits into
masterfrom
toregge/add-create-and-freeze-times
Jun 17, 2026
Merged

Add CreateAndFreezeTimes, used to keep track of when flushes started#37219
arnej27959 merged 2 commits into
masterfrom
toregge/add-create-and-freeze-times

Conversation

@toregge

@toregge toregge commented Jun 16, 2026

Copy link
Copy Markdown
Member

and completed.

@vekterli or @arnej27959 : please review

@toregge toregge requested review from arnej27959 and vekterli June 16, 2026 14:13
arnej27959
arnej27959 previously approved these changes Jun 16, 2026
@arnej27959 arnej27959 merged commit 8cca330 into master Jun 17, 2026
2 of 3 checks passed
@arnej27959 arnej27959 deleted the toregge/add-create-and-freeze-times branch June 17, 2026 05:16

@vekterli vekterli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

[[nodiscard]] static std::chrono::steady_clock::duration
make_flush_duration(const std::chrono::steady_clock::time_point& create_time);
[[nodiscard]] uint64_t create_time() const noexcept { return _create_time; }
[[nodiscard]] uint64_t freeze_time() const noexcept { return _freeze_time; }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't help but feel that this would be semantically cleaner if these were exposed (and possibly internally represented) as system_clock::time_point types instead, since they represent single logical points on the timeline. Possibly with an u64 (create|freeze)_time_us convenience accessor if we do a lot of integer shenanigans on these elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants