public class TimeStampedSample
extends java.lang.Object
Constructor and Description |
---|
TimeStampedSample(double value) |
Modifier and Type | Method and Description |
---|---|
long |
getSampleTime()
Return the time in millis, when this sample was taken.
|
double |
getValue()
Get the value of this sample.
|
boolean |
isOlderThan(long millis)
Whether the sample has been taken more than n millis ago.
|
public long getSampleTime()
System.currentTimeMillis()
method.public double getValue()
public boolean isOlderThan(long millis)
millis
-