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

commonMain.io.nacular.doodle.time.Clock.kt Maven / Gradle / Ivy

There is a newer version: 0.10.4
Show newest version
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