|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.xsl.util.Timer
public class Timer
A simple class for measuring elapsed time. Timers start measuring elapsed time from the moment they are created. Timers can return the total elapsed time as well as a simple lap time.
Constructor Summary | |
---|---|
Timer()
|
Method Summary | |
---|---|
long |
getLapTime()
Returns the number of milliseconds for the current lap, then restarts the lap timer. |
long |
getTotalTime()
Returns the number of milliseconds since this timer was created. |
String |
millisToString(long millis)
Converts the specified number of milliseconds into seconds and returns it as a string with three digits after the decimal point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Timer()
Method Detail |
---|
public String millisToString(long millis)
millis
- the number of milliseconds to be converted
public long getLapTime()
public long getTotalTime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |