|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.cbse.jeasy.JETimer
public class JETimer
A stopwatch giving the time in sec, msec and mikrosec Because it is allways synchronized with the systen time when starting the watch the timer needs until 15 msec for itself. But the tine between start and stop is then given exactly.
| Constructor Summary | |
|---|---|
JETimer()
Initializes the Timer |
|
| Method Summary | |
|---|---|
double |
getTimeInMs()
Gets the time im ms as a double |
long |
startTimer(java.lang.String label)
Starts the timer when the system time changes (all 15 msec on an standard PC) |
long |
stopTimer()
Stops the timer and gives back the System.currentTimeMillis when stopping. |
java.lang.String |
stopTimerAndGet()
Stops the timer and gives back a formatted String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JETimer()
| Method Detail |
|---|
public long startTimer(java.lang.String label)
label - used for formatted output
public java.lang.String stopTimerAndGet()
public long stopTimer()
public double getTimeInMs()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||