|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.rej.util.StopWatch
public class StopWatch
Utility class for measuring the duration of tasks for informal uses. Has an elapsedSeconds method for retrieving the time elapsed between calls to the methods start and stop in seconds.
Constructor Summary | |
---|---|
StopWatch()
Initializes a new object and starts the timer. |
|
StopWatch(boolean start)
Initializes a new object and depending on the given parameter either stars the timer, or not. |
Method Summary | |
---|---|
int |
elapsedSeconds()
Returns the number of elapsed seconds since the timer was started (either via the constructor or a call to the start method). |
void |
start()
Starts the timer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StopWatch()
public StopWatch(boolean start)
start
- Method Detail |
---|
public void start()
public int elapsedSeconds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |