Skip to content

Conversation

@jgraettinger
Copy link
Contributor

Update Clock.Tick() to increment by 1 microsecond (1000ns) instead of 100ns to improve compatibility with external systems that only have microsecond precision. This changes the increment from 1 to 160 units in the clock's internal representation (10 * 2^4 bits).

An implication is that a single producer can write at most one million messages per second (1M micros in a second). Multiple producers can of course write at a higher rate.

Update Clock.Tick() to increment by 1 microsecond (1000ns) instead of
100ns to improve compatibility with external systems that only have
microsecond precision. This changes the increment from 1 to 160 units
in the clock's internal representation (10 * 2^4 bits).

An implication is that a _single_ producer can write at most
one million messages per second (1M micros in a second).
Multiple producers can of course write at a higher rate.
Copy link
Contributor

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

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

LGTM

@jgraettinger jgraettinger merged commit 5af7417 into master Sep 23, 2025
1 check passed
@jgraettinger jgraettinger deleted the johnny/tick-micros branch September 23, 2025 17:46
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