commonMain.io.nacular.doodle.time.Clock.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-jvm Show documentation
Show all versions of core-jvm Show documentation
A pure Kotlin, UI framework for the Web and Desktop
package io.nacular.doodle.time
import io.nacular.measured.units.Measure
import io.nacular.measured.units.Time
/**
* Exposes the current epoch time that is useful for date related time operations.
* This API is tied to a user's clock, so it should not be used when monotonicity is required.
* It is also not guaranteed to be as high resolution as needed for precise time operations.
*
* Created by Nicholas Eddy on 10/19/17.
*/
public interface Clock {
/** Current epoch time */
public val epoch: Measure
© 2015 - 2025 Weber Informatics LLC | Privacy Policy