org.objectweb.proactive.core.util.timer
Class TimerWithMemory
java.lang.Object
org.objectweb.proactive.core.util.timer.AverageMicroTimer
org.objectweb.proactive.core.util.timer.TimerWithMemory
- All Implemented Interfaces:
- java.io.Serializable, Timer
- public class TimerWithMemory
- extends AverageMicroTimer
- implements Timer, java.io.Serializable
A timer which retains the values measured in addition to calculating the average
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
memory
protected long[] memory
position
protected int position
TimerWithMemory
public TimerWithMemory()
TimerWithMemory
public TimerWithMemory(java.lang.String name)
stop
public void stop()
- Description copied from class:
AverageMicroTimer
- stop the timer and use the cumulated time to compute the average
- Specified by:
stop
in interface Timer
- Overrides:
stop
in class AverageMicroTimer
addToMemoryTest
protected void addToMemoryTest(long time)
- Called only to perform some testing
- Parameters:
time
-
addToMemory
protected void addToMemory(long time)
getMemory
public long[] getMemory()
- return a copy of the memory of this timer
- Returns:
- a copy of the memory
getVariance
public double getVariance()
getStandardDeviation
public double getStandardDeviation()
reset
public void reset()
- Specified by:
reset
in interface Timer
- Overrides:
reset
in class AverageMicroTimer
dump
public void dump()
- Specified by:
dump
in interface Timer
- Overrides:
dump
in class AverageMicroTimer
main
public static void main(java.lang.String[] args)
Copyright ? April 2005 INRIA All Rights Reserved.