|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.e2etrace.timer.ExactTimer
public class ExactTimer
Timer Implementation with high accuracy regardless of the operating system.
New JDKs provide an API for measuring time intervals that works accurate on all operating systems. To be exact: It guarantees the accuracy the operating system is able to deliver. In most to all cases this should be about 1-2ms.
Method Summary | |
---|---|
long |
measure()
Returns the duration in ms since start() . |
void |
start()
Starts the timer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void start()
start
in interface ITimer
public long measure()
start()
.
measure
in interface ITimer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |