| Package | Description |
|---|---|
| net.openhft.chronicle.core.threads | |
| net.openhft.chronicle.core.time |
Supplies time providers and utilities for obtaining or setting precise wall-clock timestamps.
|
| Constructor and Description |
|---|
CancellableTimer(@NotNull EventLoop eventLoop,
@NotNull TimeProvider timeProvider)
Constructs a CancellableTimer with the given event loop and custom time provider.
|
Timer(@NotNull EventLoop eventLoop,
@NotNull TimeProvider timeProvider)
Constructs a Timer with a specified time provider.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PosixTimeProvider
Provides time based on the Posix standard, particularly utilizing native code
to access high-resolution time.
|
class |
SetTimeProvider
A
TimeProvider implementation that allows explicit setting and manipulation of time values
for testing purposes. |
class |
SystemTimeProvider
Synthesises a nanosecond wall clock from the system clock.
|
class |
UniqueMicroTimeProvider
A
TimeProvider implementation that ensures unique timestamps across threads within a single process. |
| Modifier and Type | Field and Description |
|---|---|
static TimeProvider |
SystemTimeProvider.CLOCK |
| Modifier and Type | Method and Description |
|---|---|
UniqueMicroTimeProvider |
UniqueMicroTimeProvider.provider(TimeProvider provider)
Sets the underlying time provider for this instance and initialises the last time value.
|
Copyright © 2026 Chronicle Software Ltd. All rights reserved.