TrueTimeManager
Functions
Link copied to clipboard
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
Initializes TrueTime synchronously. Returns true if initialization succeeds, false otherwise. No retry logic.