Package com.epicbot.api.shared.util.time
Class Timer
- java.lang.Object
-
- com.epicbot.api.shared.util.time.Timer
-
- Direct Known Subclasses:
SleepTimer
public class Timer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Timer(long period)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getElapsed()
long
getRemaining()
boolean
isRunning()
void
reset()
long
setEndIn(long period)
void
stop()
java.lang.String
toElapsedString()
java.lang.String
toRemainingString()
-
-
-
Method Detail
-
isRunning
public boolean isRunning()
-
getElapsed
public long getElapsed()
-
getRemaining
public long getRemaining()
-
reset
public void reset()
-
setEndIn
public long setEndIn(long period)
-
stop
public void stop()
-
toElapsedString
public java.lang.String toElapsedString()
-
toRemainingString
public java.lang.String toRemainingString()
-
-