|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ru.sscc.util.TimeCounter
An instance of this class is a simple timer that allows to count a time spent from the construction or the last restart of the timer.
Constructor Summary | |
TimeCounter()
Constructs the timer and starts it. |
Method Summary | |
void |
restart()
Restarts the timer. |
long |
timeMillis()
Returns the time in millis spent from the last restart. |
java.lang.String |
toString()
Returns the spent time in the form "s.mmm" with millis after the decimal point. |
static java.lang.String |
toString(long timeMillis)
Converts a time in millis to the form "s.mmm" with millis after the decimal point. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public TimeCounter()
Method Detail |
public void restart()
public long timeMillis()
public static java.lang.String toString(long timeMillis)
public java.lang.String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |