|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.proactive.benchmarks.timit.util.TimerCounter
public class TimerCounter
Represent a counter used for timing procedures
| Constructor Summary | |
|---|---|
TimerCounter(java.lang.String s)
Create a counter with his name as it will be shown on output charts. |
|
| Method Summary | |
|---|---|
void |
addValue(int t)
Add a specific time value (in milliseconds) to the counter. |
int |
getElapsedTime()
|
int |
getHierarchicalTime()
|
int |
getId()
Get the counter id |
java.lang.String |
getName()
Get the counter name |
int |
getTotalTime()
|
boolean |
isMigratable()
Used by the Timer to know if a counter can be migrated |
boolean |
isStarted()
Keep in mind that this method take a "little bit of time". |
void |
reset()
Reset the counter |
void |
setId(int n)
Set the counter id |
void |
setName(java.lang.String s)
Set the counter name |
void |
setTimer(HierarchicalTimer timer)
Used by the Timer to register the counter |
void |
setValue(int t)
Set a specific time value (in milliseconds) to the counter. |
void |
start()
Start the counter. |
void |
stop()
Stop the counter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerCounter(java.lang.String s)
s - | Method Detail |
|---|
public void setId(int n)
n - public void setName(java.lang.String s)
s - public int getId()
public java.lang.String getName()
public void setTimer(HierarchicalTimer timer)
timer - public boolean isMigratable()
public void start()
public void stop()
public void setValue(int t)
t - time value to set in millispublic void addValue(int t)
t - time value to add in millispublic boolean isStarted()
public int getElapsedTime()
public int getHierarchicalTime()
public int getTotalTime()
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||