TimeMeasure

class TimeMeasure(val value: Long, val unit: TimeUnit) : Serializable

It represents time durations and provides utility methods to convert across time units.

Parameters

value

Time duration at the selected TimeUnit.

unit

Measure unit of the time duration.

Constructors

Link copied to clipboard
constructor(value: Long, unit: TimeUnit)

Functions

Link copied to clipboard
fun convert(toUnit: TimeUnit): Long

Convert the time unit of current time duration.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
val value: Long