See: Description
| Interface | Description |
|---|---|
| TimeProvider |
Supplies wall clock timestamps in milliseconds, microseconds and nanoseconds.
|
| Class | Description |
|---|---|
| LongTime | |
| SetTimeProvider |
A
TimeProvider implementation that allows explicit setting and manipulation of time values
for testing purposes. |
| UniqueMicroTimeProvider |
A
TimeProvider implementation that ensures unique timestamps across threads within a single process. |
| Enum | Description |
|---|---|
| PosixTimeProvider |
Provides time based on the Posix standard, particularly utilizing native code
to access high-resolution time.
|
| SystemTimeProvider |
Synthesises a nanosecond wall clock from the system clock.
|
| Provider | Precision and behaviour |
|---|---|
SystemTimeProvider | Pure Java; synthesises nanoseconds using System.nanoTime and System.currentTimeMillis. |
PosixTimeProvider | Uses native clock_gettime for
high resolution. |
UniqueMicroTimeProvider | Ensures unique microsecond timestamps across threads using a delegate provider. |
SetTimeProvider | Manually settable time with optional auto-increment for tests. |
TimeProvider timeProvider = PosixTimeProvider.INSTANCE;
long now = timeProvider.currentTimeNanos();
Copyright © 2026 Chronicle Software Ltd. All rights reserved.