|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.minueto.MinuetoStopWatch
public class MinuetoStopWatch
The MinuetoStopWatch class is used to measure time. It functions are
similar to those found on a stopwatch. MinuetoStopWatch measures
time in milliseconds. However, it is only more or less 20 milliseconds precise.
| Constructor Summary | |
|---|---|
MinuetoStopWatch()
Create a MinuetoStopWatch and set its value to 0. |
|
| Method Summary | |
|---|---|
long |
getTime()
If the stopwatch is running, returns the time ellapse in millisecond between the invocation of the start method and the invocation of this
method. |
void |
reset()
Reset the value of the stopwatch to 0. |
void |
start()
Start the stopwatch. |
void |
stop()
Stop the stopwatch. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinuetoStopWatch()
| Method Detail |
|---|
public void start()
stop or reset method. Additionnals invocation of the
start method are ignored if the stopwatch is already running.
public void stop()
public void reset()
public long getTime()
start method and the invocation of this
method. Otherwise, returns the time ellapse between invocation of the
start and stop method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||