Skip to content

Use clock.now().to_time() everywhere#4401

Merged
tgeoghegan merged 1 commit intomainfrom
timg/clock-now-time-precision
Feb 26, 2026
Merged

Use clock.now().to_time() everywhere#4401
tgeoghegan merged 1 commit intomainfrom
timg/clock-now-time-precision

Conversation

@tgeoghegan
Copy link
Contributor

The test-only Clock::now_aligned_to_precision is redundant because you can equivalently do clock.now().to_time().

See #4225 for discussion.

Copy link
Contributor

@jcjones jcjones left a comment

Choose a reason for hiding this comment

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

hurray

The test-only `Clock::now_aligned_to_precision` is redundant because you
can equivalently do `clock.now().to_time()`.

See #4225 for discussion.
@tgeoghegan tgeoghegan force-pushed the timg/clock-now-time-precision branch from 1a51017 to 7d0af2d Compare February 26, 2026 20:48
@tgeoghegan tgeoghegan enabled auto-merge (squash) February 26, 2026 20:48
@tgeoghegan tgeoghegan merged commit cf319d3 into main Feb 26, 2026
8 checks passed
@tgeoghegan tgeoghegan deleted the timg/clock-now-time-precision branch February 26, 2026 21:16
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