|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.sposh.engine.timer.DebugTimer
public class DebugTimer
Timer what allows me to skip forward in time or suspend time for a while. Very useful for tests or debugging.
| Constructor Summary | |
|---|---|
DebugTimer()
|
|
| Method Summary | |
|---|---|
void |
addTime(long time2add)
|
long |
getTime()
|
void |
init()
Initialize timer, e.g. |
boolean |
isSuspended()
Is the timer suspended? |
void |
resume()
Resume suspended timer |
void |
suspend()
Suspend timer, until resume() is called, stop the clock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DebugTimer()
| Method Detail |
|---|
public void init()
ITimer
init in interface ITimerpublic void suspend()
ITimer
suspend in interface ITimerpublic boolean isSuspended()
ITimer
isSuspended in interface ITimerpublic void resume()
ITimer
resume in interface ITimerpublic void addTime(long time2add)
public long getTime()
getTime in interface ITimer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||