Performance

abstract external class Performance : EventTarget (source)

Platform and version requirements: JS

Exposes the JavaScript Performance to Kotlin

Constructors

<init>

Performance()

Exposes the JavaScript Performance to Kotlin

Properties

navigation

open val navigation: PerformanceNavigation

timing

open val timing: PerformanceTiming

Functions

now

fun now(): Double

Inherited Functions

addEventListener

fun addEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun addEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)

dispatchEvent

fun dispatchEvent(event: Event): Boolean

removeEventListener

fun removeEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun removeEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)