|
Dashboard Builder Commons 6.1.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dashboard.commons.misc.Chronometer
public final class Chronometer
The class Chronometer permits to measure the time, with millisecond precision.
| Field Summary | |
|---|---|
protected Map |
marks
|
protected Long |
stopTime
|
| Constructor Summary | |
|---|---|
Chronometer()
|
|
| Method Summary | |
|---|---|
long |
elapsedTime()
Return the elapsed time measured in milliseconds since the very start. |
long |
elapsedTime(String mark)
Return the elapsed time measured in milliseconds since the specified mark was set. |
static String |
formatElapsedTime(long millis)
|
static void |
main(String[] arg)
Main function |
void |
resume()
Resume the timer. |
void |
start()
Start the timer. |
void |
start(String mark)
Set a mark. |
void |
stop()
Stop the timer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map marks
protected Long stopTime
| Constructor Detail |
|---|
public Chronometer()
| Method Detail |
|---|
public void start()
public void stop()
public void resume()
public void start(String mark)
public long elapsedTime()
public long elapsedTime(String mark)
public static String formatElapsedTime(long millis)
public static void main(String[] arg)
throws Exception
arg - command-line arguments.
Exception
|
Dashboard Builder Commons 6.1.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||