|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectStopwatch
public class Stopwatch
A class to measure time elapsed.
| Field Summary | |
|---|---|
static double |
NANOS_PER_SEC
|
| Constructor Summary | |
|---|---|
Stopwatch()
|
|
| Method Summary | |
|---|---|
void |
start()
start the stop watch. |
void |
stop()
stop the stop watch. |
double |
time()
elapsed time in secods. |
long |
timeInNanoseconds()
elapsed time in nanoseconds. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double NANOS_PER_SEC
| Constructor Detail |
|---|
public Stopwatch()
| Method Detail |
|---|
public void start()
public void stop()
public double time()
public java.lang.String toString()
toString in class java.lang.Objectpublic long timeInNanoseconds()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||