From 6970cedd3788536529bae8b8a7d11e0904ac881b Mon Sep 17 00:00:00 2001 From: Peter Lawrey Date: Wed, 10 Apr 2024 09:52:22 +0100 Subject: [PATCH] Clarify DistributedUniqueTimeProvider.currentTimeMillis() isn't intended to be unique and add tests #622 --- .../openhft/chronicle/bytes/DistributedUniqueTimeProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/openhft/chronicle/bytes/DistributedUniqueTimeProvider.java b/src/main/java/net/openhft/chronicle/bytes/DistributedUniqueTimeProvider.java index bd1515be160..3d6800e583f 100644 --- a/src/main/java/net/openhft/chronicle/bytes/DistributedUniqueTimeProvider.java +++ b/src/main/java/net/openhft/chronicle/bytes/DistributedUniqueTimeProvider.java @@ -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. *

- * 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. *

* @return Ordinary millisecond timestamp */