TimeUnit
This enum represents different units of time, providing a convenient way to work with time measurements in various scales. Each unit stores its equivalent value in milliseconds.
Enum Constants
MS
Represents milliseconds. Its value is 1 millisecond.
S
Represents seconds. Its value is 1000 milliseconds.
M
Represents minutes. Its value is 60000 milliseconds.
H
Represents hours. Its value is 3600000 milliseconds.
Methods
getTimeInMs()
Returns the amount of milliseconds that one unit of this time represents.