Skip to content

Commit

Permalink
Clarify DistributedUniqueTimeProvider.currentTimeMillis() isn't inten…
Browse files Browse the repository at this point in the history
…ded to be unique and add tests #622
  • Loading branch information
peter-lawrey committed Apr 10, 2024
1 parent fa721da commit 6970ced
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ public DistributedUniqueTimeProvider provider(TimeProvider provider) {
/**
* NOTE: Calls to this method do not produce unique timestamps, rather just calls the underlying provider.
* <p>
* Use {@link #currentTimeMicros()} or {@link #currentTimeNanos()} to generate unique timestamps.
* Use {@link #currentTimeMicros()} or {@link #currentTimeNanos()} to generate unique timestamps,
* or use {@link net.openhft.chronicle.core.time.UniqueMicroTimeProvider#currentTimeMillis()} to generate unique timestamps.
* <p>
* @return Ordinary millisecond timestamp
*/
Expand Down

0 comments on commit 6970ced

Please sign in to comment.