ICoreTime

interface ICoreTime

Functions

Link copied to clipboard
open fun currentTimeMillis(): Long

Unix timestamp in milliseconds

Link copied to clipboard
abstract fun currentTimeMillisDouble(): Double

Unix timestamp in milliseconds

Link copied to clipboard
abstract fun localTimezoneOffset(time: Long): Duration

Timezone offset for a specific timestamp

Link copied to clipboard
open fun performanceMillis(): Double
Link copied to clipboard
open fun sleep(duration: Duration)

Accurately synchronously sleep (may spinlock on JS and WASM, use with care)

Link copied to clipboard
open fun unaccurateSleep(duration: Duration)

Synchronous sleep (may spinlock on JS and WASM, use with care)

Link copied to clipboard
open fun unaccurateYield()

Yields this thread without waiting