|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimple.time.Timer
public class Timer
Simple timer.
Created: Nov 9, 2010
| Field Summary | |
|---|---|
private long |
t
|
| Constructor Summary | |
|---|---|
Timer()
|
|
| Method Summary | |
|---|---|
long |
elapsed()
Subtracts the start time from the current time. |
void |
print(java.lang.String s)
Displays the elapsed time on the standard system output stream. |
void |
reset()
Sets the start time to the current time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long t
| Constructor Detail |
|---|
public Timer()
| Method Detail |
|---|
public void reset()
public long elapsed()
public void print(java.lang.String s)
s - String to display with elapsed time.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||