|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsilk.performer.MeasureTimer
Represents a time measure series. Use objects of that class instead of MesureStart/Stop and MeasurePause/Resume of the SilkPerformer class.
MeasureCounter| Constructor Summary | |
MeasureTimer(java.lang.String name,
int idx,
SilkPerformer spContext)
Creates a custom time measurement on . |
|
MeasureTimer(java.lang.String name,
SilkPerformer spContext)
Creates a custom time measurement at first position of the timer list. |
|
| Method Summary | |
int |
addMeasure(int value)
Adds a single measurement to the time series. |
int |
getIdx()
Returns the timer list index of that counter. |
java.lang.String |
getName()
Returns the name of the counter. |
int |
pause()
Pauses a previously started measurement. |
int |
resume()
Resumes a previously paused measurement. |
boolean |
setBound(double lowValue,
double highValue)
Determines the bound of the timer. |
void |
start()
Starts a measurement. |
int |
stop()
Stops a previously started measurement. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MeasureTimer(java.lang.String name,
SilkPerformer spContext)
name - Time measure name, used to identify the measure in output.spContext - The SilkPerformer object of your framework class.
public MeasureTimer(java.lang.String name,
int idx,
SilkPerformer spContext)
name - Time measure name, used to identify the measure in output.idx - Index in the timer list, use it for real time monitoring with PerformanceExplorer.spContext - The SilkPerformer object of your framework class.| Method Detail |
public void start()
throws SilkPerformerException
SilkPerformerException
public int stop()
throws SilkPerformerException
SilkPerformerException
public int pause()
throws SilkPerformerException
SilkPerformerException
public int resume()
throws SilkPerformerException
SilkPerformerException
public boolean setBound(double lowValue,
double highValue)
throws SilkPerformerException
lowValue - Lower bound value in seconds.highValue - Higher bound value in seconds.
SilkPerformerException
public int addMeasure(int value)
throws SilkPerformerException
value - Value in 1/1000 seconds.
SilkPerformerExceptionpublic java.lang.String getName()
public int getIdx()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||