|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.buffalo.fs7.mathlib.Timing
Class providing timing functionality for gate operations.
| Constructor Summary | |
Timing()
creates a timing object and initializes it |
|
| Method Summary | |
double |
getAvgTimePerStepMillis()
returns the average time per gate in milliseconds |
double |
getElapsedTimeSec()
returns the total elapsed time in seconds |
double |
getTimeEstimateForStepsSec(int steps)
returns a time estimate for the given number of steps based on the average time per step. |
boolean |
isTiming()
returns whether the object is currently timing |
void |
reset()
reset the internal values |
void |
start()
starts the timing process |
void |
stepsAccomplished(int stepsAcc)
sets the number of steps accomplished in the last timing interval |
void |
stop()
stops the timing process |
void |
stop(int stepsAcc)
combines the stop() and stepsAccomplished(int) methods |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Timing()
| Method Detail |
public void reset()
public void start()
public void stop()
public void stepsAccomplished(int stepsAcc)
public void stop(int stepsAcc)
public boolean isTiming()
public double getElapsedTimeSec()
public double getAvgTimePerStepMillis()
public double getTimeEstimateForStepsSec(int steps)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||