commonMain.io.nacular.measured.units2.Time.kt Maven / Gradle / Ivy
//package io.nacular.measured.units2
//
///**
// * Units to measure time durations.
// */
//open class Time(suffix: String, ratio: Double = 1.0): Units(suffix, ratio) {
// operator fun div(other: Time) = toBase() / other.toBase()
//
// companion object {
// val milliseconds = Time("ms" )
// val seconds = Time("s", 1000.0 )
// val minutes = Time("min", 60 * seconds.toBase())
// val hours = Time("hr", 60 * minutes.toBase())
// }
//}