|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gtosoft.libvoyager.util.EasyTime
public class EasyTime
Constructor Summary | |
---|---|
EasyTime()
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
currentDateAndTimeStamp()
Returns a string containing the current time stamp. |
static long |
getUnixTime()
|
long |
getUptimeMillis()
|
long |
getUptimeSeconds()
|
int |
getUptimeSecondsINT()
|
static boolean |
safeSleep(int millis)
Sleep for the specified number of milliseconds. |
void |
setMillisBetweenUpdate(int millisToWaitBetweenUpdates)
Sets the number of milliseconds between updates to the time variable. |
void |
shutdown()
Shuts down the EasyTime class and prepares it for gc. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EasyTime()
Method Detail |
---|
public long getUptimeMillis()
public long getUptimeSeconds()
public int getUptimeSecondsINT()
public static long getUnixTime()
public static java.lang.String currentDateAndTimeStamp()
public static boolean safeSleep(int millis)
millis
- - number of milliseconds to pause the current thread.
public void setMillisBetweenUpdate(int millisToWaitBetweenUpdates)
millisToWaitBetweenUpdates
- - number of milliseconds.public void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |