TimeOffsetCache

class TimeOffsetCache(delay: Duration, resolution: Duration)

A cache used to fetch a single Long value on a delay.

Constructors

Link copied to clipboard
constructor(delay: Duration, resolution: Duration)

Properties

Link copied to clipboard
var size: Int

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun update(latestVal: Long, nowNs: Long = System.nanoTime())