Package org.dreambot.api.utilities
Class Timer
- java.lang.Object
-
- org.dreambot.api.utilities.Timer
-
public class Timer extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
elapsed()
boolean
finished()
java.lang.String
formatRemainingTime()
java.lang.String
formatTime()
static java.lang.String
formatTime(long milliseconds)
int
getHourlyRate(int current)
long
getLongHourlyRate(long current)
boolean
isPaused()
void
pause()
long
remaining()
void
reset()
void
resume()
void
setRunTime(long runTime)
void
start()
-
-
-
Method Detail
-
formatTime
public java.lang.String formatTime()
-
formatRemainingTime
public java.lang.String formatRemainingTime()
-
setRunTime
public void setRunTime(long runTime)
-
finished
public boolean finished()
-
start
public void start()
-
pause
public void pause()
-
resume
public void resume()
-
remaining
public long remaining()
-
isPaused
public boolean isPaused()
-
elapsed
public long elapsed()
-
reset
public void reset()
-
getHourlyRate
public int getHourlyRate(int current)
-
getLongHourlyRate
public long getLongHourlyRate(long current)
-
formatTime
public static java.lang.String formatTime(long milliseconds)
-
-