net.ontopia.utils
Class TimeSamples

java.lang.Object
  extended by net.ontopia.utils.TimeSamples

public class TimeSamples
extends java.lang.Object

INTERNAL: Store a set a time samples for easier calculation of minimum, maximum and average times.


Constructor Summary
TimeSamples()
           
 
Method Summary
 void addTime(double timeInSecs)
          INTERNAL: Add sample time to set.
 double getAverageTime()
          INTERNAL: Get average sample time in seconds.
 double getMaximumTime()
          INTERNAL: Get minimum sampled time in seconds.
 double getMinimumTime()
          INTERNAL: Get maximum sampled time in seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSamples

public TimeSamples()
Method Detail

addTime

public void addTime(double timeInSecs)
INTERNAL: Add sample time to set.


getAverageTime

public double getAverageTime()
INTERNAL: Get average sample time in seconds.


getMinimumTime

public double getMinimumTime()
INTERNAL: Get maximum sampled time in seconds.


getMaximumTime

public double getMaximumTime()
INTERNAL: Get minimum sampled time in seconds.



Copyright © 2000-2012 Ontopia.