Skip to content

Introduce Cycles32 for compact 32-bit cycle timestamp tracking - #449

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_956533306
Aug 3, 2026
Merged

Introduce Cycles32 for compact 32-bit cycle timestamp tracking#449
copybara-service[bot] merged 1 commit into
masterfrom
test_956533306

Conversation

@copybara-service

Copy link
Copy Markdown

Introduce Cycles32 for compact 32-bit cycle timestamp tracking

Introduces class Cycles32 to encapsulate 32-bit timestamp tracking by
right-shifting clock.now() by kShift=20 bits (~1M cycles, ~0.35 ms granularity
at 3 GHz). This extends the 32-bit epoch to ~17.3 days before wraparound.

Introduces class Cycles32 to encapsulate 32-bit timestamp tracking by
right-shifting clock.now() by kShift=20 bits (~1M cycles, ~0.35 ms granularity
at 3 GHz). This extends the 32-bit epoch to ~17.3 days before wraparound.

PiperOrigin-RevId: 958462641
@copybara-service
copybara-service Bot merged commit 644dee8 into master Aug 3, 2026
@copybara-service
copybara-service Bot deleted the test_956533306 branch August 3, 2026 17:51
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.

1 participant