All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.jupyter.ext.TimeUtil.kt Maven / Gradle / Ivy

There is a newer version: 0.12.0-333
Show newest version
package org.jetbrains.kotlinx.jupyter.ext

import org.jetbrains.kotlinx.jupyter.ext.integration.ElapsedTimeIntegration
import kotlin.time.Duration
import kotlin.time.ExperimentalTime

fun enableTimeMeasuring() {
    ElapsedTimeIntegration.enabled = true
}

@OptIn(ExperimentalTime::class)
fun enableTimeMeasuring(format: (Duration) -> Any) {
    enableTimeMeasuring()
    ElapsedTimeIntegration.format = format
}

fun disableTimeMeasuring() {
    ElapsedTimeIntegration.enabled = false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy