Liking cljdoc? Tell your friends :D

com.vadelabs.uid.flake.nanoclock

High-precision timestamp provider combining wall clock and monotonic timing.

This implementation anchors to the system wall clock at initialization, then uses monotonic timing to provide nanosecond-precision timestamps that maintain consistent intervals.

Key characteristics:

  • Nanosecond resolution for timestamp generation
  • Monotonic properties within process lifetime
  • Wall-clock anchored for cross-system compatibility
  • Single global instance for consistency

Note: This is not a high-precision wall clock replacement. While it provides nanosecond granularity, it can drift from true wall time over extended periods as monotonic clocks don't adjust for NTP synchronization.

Timestamp range extends to approximately year 2262 when using nanosecond precision in a long value.

High-precision timestamp provider combining wall clock and monotonic timing.

This implementation anchors to the system wall clock at initialization,
then uses monotonic timing to provide nanosecond-precision timestamps
that maintain consistent intervals.

Key characteristics:
- Nanosecond resolution for timestamp generation
- Monotonic properties within process lifetime
- Wall-clock anchored for cross-system compatibility
- Single global instance for consistency

Note: This is not a high-precision wall clock replacement. While it provides
nanosecond granularity, it can drift from true wall time over extended periods
as monotonic clocks don't adjust for NTP synchronization.

Timestamp range extends to approximately year 2262 when using nanosecond
precision in a long value.
raw docstring

current-time-microsclj

(current-time-micros)
source

current-time-millisclj

(current-time-millis)
source

current-time-nanosclj

(current-time-nanos)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close