public class Counter extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
getAverageClicksPerTime(long timeInMilli) |
int |
getCount() |
String |
getLabel() |
long |
getLastTime() |
DateDifference |
getLastTimeDifference() |
long |
getTimeSinceLast() |
long |
getTimeSinceStart() |
void |
inc() |
void |
reset() |
static Counter[] |
toArray(Vector vectorOf)
A convenience function to turn a vector of Counter objects
into an Array of the Counter objects.
|
String |
toString() |
public Counter()
public Counter(String label)
public void inc()
public void reset()
public int getCount()
public long getLastTime()
public int getAverageClicksPerTime(long timeInMilli)
public long getTimeSinceLast()
public long getTimeSinceStart()
public DateDifference getLastTimeDifference()
public static Counter[] toArray(Vector vectorOf)
vectorOf - a Vector of Counter objectsError - if an element of vectorOf is not a Counter object.public String getLabel()
Copyright © 2021. All rights reserved.