|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.util.timer.AverageMicroTimer
org.objectweb.proactive.core.util.timer.EWMATimer
A timer where we compute an exponentially weighted moving average i.e average(n)=average(n-1)*alpha+(1-alpha)*value(n)
Field Summary | |
protected double |
alpha
|
protected double |
average
|
Fields inherited from class org.objectweb.proactive.core.util.timer.AverageMicroTimer |
currentElapsed, name, nbrValues, running, timer, total |
Constructor Summary | |
EWMATimer(java.lang.String s,
double alpha)
|
Method Summary | |
double |
getAverage()
return the average time measured so far |
static void |
main(java.lang.String[] args)
|
void |
reset()
|
void |
stop()
stop the timer and use the cumulated time to compute the average |
Methods inherited from class org.objectweb.proactive.core.util.timer.AverageMicroTimer |
dump, getCumulatedTime, getName, getNumberOfValues, pause, resume, setName, start, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected double alpha
protected double average
Constructor Detail |
public EWMATimer(java.lang.String s, double alpha)
Method Detail |
public void stop()
AverageMicroTimer
stop
in interface Timer
stop
in class AverageMicroTimer
public double getAverage()
AverageMicroTimer
getAverage
in interface Timer
getAverage
in class AverageMicroTimer
public void reset()
reset
in interface Timer
reset
in class AverageMicroTimer
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |