public class Timer
public Timer(@NotNull TimeUnit timeUnit, long time)
@NotNull public Timer clone()
public long toTick()
public long toSecond()
public long toMinute()
public long toHour()
@NotNull public Timer subtract(@NotNull TimeUnit unit, long amount)
Subtract the amount
of time from this class Timer
.
class Timer
.amount
,
class Timer
@NotNull public Timer subtract(@NotNull Timer amount)
Subtract the amount
of time from this class Timer
.
class Timer
.amount
,
class Timer
@NotNull public java.lang.String format(boolean verbose)
Returns a fancy formatted String based on this class Timer
.
If verbose
is true, expect something like: 1 hour 35 minutes
If verbose
is otherwise false, expect: 01:35:00
class Timer
,
verbose
,
verbose