|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object CTL.Timer
public class Timer
Timer
Field Summary | |
---|---|
private long |
time
Some time value |
Constructor Summary | |
---|---|
Timer()
Constructor |
Method Summary | |
---|---|
private static long |
getTime()
Helper method for retrieving the current time |
static void |
main(java.lang.String[] args)
Test function |
static void |
sleep(long millisecs)
Sleep for some time |
long |
stop()
Stop the timer and reset the internal time |
long |
stop2()
Stop the timer and do not reset the interal timer |
static java.lang.String |
timestr(long time)
Convert a time value to a string |
java.lang.String |
toString()
Conversion to string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long time
Constructor Detail |
---|
public Timer()
Method Detail |
---|
private static long getTime()
public long stop()
public long stop2()
public static java.lang.String timestr(long time)
time
- Time
public java.lang.String toString()
toString
in class java.lang.Object
public static void sleep(long millisecs)
millisecs
- Milliseconds to sleeppublic static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |