TrueTimeManager

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun getCurrentTimeSeconds(): Long

Get the current synchronized time in Unix epoch seconds. Returns -1 immediately when TrueTime is not ready (does not block the caller).

Link copied to clipboard
suspend fun ITrueTimeManager.getCurrentTimeSecondsWithRetry(attempts: Int = TRUE_TIME_RETRY_ATTEMPTS, delayMs: Long = TRUE_TIME_RETRY_DELAY_MS): Long

Polls getCurrentTimeSeconds without blocking a thread. Returns -1 if still unavailable.

Link copied to clipboard
open override fun initializeTrueTime(): Boolean

Initializes TrueTime synchronously. Returns true if initialization succeeds, false otherwise. No retry logic.