|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robokind.api.common.utils.TimeUtils
public class TimeUtils
Utility methods for dealing with time.
| Constructor Summary | |
|---|---|
TimeUtils()
|
|
| Method Summary | |
|---|---|
static long |
now()
Returns the current clock time. |
static void |
sleep(long msec)
Attempts to sleep for the specified length |
static String |
timeString(long millisec)
Formats a timespan in milliseconds |
static String |
timeString(long millisec,
int len)
Formats a timespan in milliseconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeUtils()
| Method Detail |
|---|
public static long now()
public static void sleep(long msec)
msec - number of milliseconds to sleeppublic static String timeString(long millisec)
millisec - number of milliseconds
public static String timeString(long millisec,
int len)
millisec - number of millisecondslen - minimum String length, padded with 0s
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||