toggle menu
Measured
0.4.1
common
switch theme
Measured
io.
nacular.
measured.
units
abs()
absolute
Value
Acceleration
Angle
Companion
Binary
Size
Companion
ceil()
compare
To()
Distance
div()
floor()
Graphics
Length
Companion
Inverse
Units
invoke()
Length
Companion
Mass
Companion
Measure
min
Of()
normalize()
rem()
round()
sign
Square
Time
Companion
times()
to
Nearest()
Units
Units
Product
Units
Ratio
Velocity
Measured
/
io.nacular.measured.units
/
Time
Time
open
class
Time
(
val
suffix
:
String
,
val
ratio
:
Double
=
1.0
)
:
Units
(
source
)
Units to measure time durations.
Members
Members & Extensions
Constructors
Time
Link copied to clipboard
constructor
(
suffix
:
String
,
ratio
:
Double
=
1.0
)
Types
Companion
Link copied to clipboard
object
Companion
Inherited properties
ratio
Link copied to clipboard
val
ratio
:
Double
=
1.0
suffix
Link copied to clipboard
val
suffix
:
String
Functions
div
Link copied to clipboard
operator
fun
div
(
other
:
Time
)
:
Double
Inherited functions
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
times
Link copied to clipboard
operator
fun
Time
.
times
(
other
:
Length
)
:
UnitsProduct
<
Length
,
Time
>
Sort Length before Time which is conventional.
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String