public class FunctionTimer
extends java.lang.Object
| Constructor and Description |
|---|
FunctionTimer()
Create a new FunctionTimer
|
| Modifier and Type | Method and Description |
|---|---|
double |
getResolutionUsec()
Returns the resolution of this timer, in microseconds.
|
double |
getTimeUsec()
Returns the elapsed time in microseconds.
|
void |
reset()
Sets the elapsed time to 0 and re-initializes the start indicator
|
void |
restart()
Marks the beginning of a new timing interval and leaves the elapsed time
unchanged.
|
java.lang.String |
result(int cnt)
Returns a string describing the current elapsed time, divided by the
supplied count parameter.
|
java.lang.String |
resultMsec(int cnt)
Returns a string describing the current elapsed time, divided by the
supplied count parameter.
|
java.lang.String |
resultUsec(int cnt)
Returns a string describing the current elapsed time, divided by the
supplied count parameter.
|
void |
start()
Marks the beginning of a new timing interval and sets the elapsed time to
0.
|
void |
stop()
|
public void start()
public void restart()
public void reset()
public void stop()
public double getTimeUsec()
start or restart has been called but
stop has not yet been called, the associated time differece
will not be included in the result.public double getResolutionUsec()
public java.lang.String result(int cnt)
cnt - count to divide the elapsed time bypublic java.lang.String resultUsec(int cnt)
cnt - count to divide the elapsed time bypublic java.lang.String resultMsec(int cnt)
cnt - count to divide the elapsed time by