Package org.highlife.api.utilities
Class Timer
java.lang.Object
org.highlife.api.utilities.Timer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongelapsed()booleanfinished()static StringformatTime(long milliseconds) intgetHourlyRate(int current) longgetLongHourlyRate(long current) booleanisPaused()voidpause()longvoidreset()voidresume()voidsetRunTime(long runTime) voidstart()
-
Constructor Details
-
Timer
public Timer(long runtime) -
Timer
public Timer()
-
-
Method Details
-
formatTime
-
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
-