public class MeasuredRate
extends java.lang.Object
| Constructor and Description |
|---|
MeasuredRate(long sampleInterval) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
Returns the count in the last sample interval
|
long |
getCurrentCount()
Returns the count in the current sample interval which will be incomplete.
|
void |
increment()
Increments the count in the current sample interval.
|
static void |
main(java.lang.String[] args) |
java.lang.String |
toString() |
public MeasuredRate(long sampleInterval)
sampleInterval - in millisecondspublic long getCount()
public long getCurrentCount()
getCount()
instead.public void increment()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)