|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.performance.Timer
public class Timer
Timer class, for gathering execution/response times.
The timer class allows for simple gathering of execution/response times in seconds. The class measures using nano time so there is no dependency on the system clock.
startTime
: nano time when the timer was startedendTime
: nano time when the timer was endedtimeDateStamp
: time date stamp when the timer was started
Constructor Summary | |
---|---|
Timer()
|
Method Summary | |
---|---|
void |
end()
End timer. |
long |
getTimeDateStamp()
Return the time/date stamp taken when the timer last started. |
double |
getTotalTime()
Return the total execution time as seconds. |
void |
reset()
Reset timer values to 0. |
static double |
round(double unrounded,
int precision)
Return the input double with precision places rounded up |
void |
start()
Start timer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Timer()
Method Detail |
---|
public void start()
public void end()
public long getTimeDateStamp()
public double getTotalTime()
public void reset()
public static double round(double unrounded, int precision)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |