public class Meter extends Object
Modifier and Type | Field and Description |
---|---|
static long |
E |
static long |
G |
static long |
K |
static long |
M |
static long |
P |
static long |
T |
Constructor and Description |
---|
Meter() |
Modifier and Type | Method and Description |
---|---|
void |
add() |
Meter |
add(long difference) |
DataException |
addExceptionProperties(DataException exception) |
long |
getCount() |
long |
getElapsedTime() |
long |
getStarted() |
double |
getUnitsPerSecond()
Returns units per second.
|
String |
getUnitsPerSecondAsString() |
String |
getUnitsPerSecondAsString(String units) |
boolean |
isRunning() |
Meter |
reset()
restarts the timer and count.
|
Meter |
stopTimer() |
String |
toString() |
public static final long K
public static final long M
public static final long G
public static final long T
public static final long P
public static final long E
public Meter reset()
public Meter stopTimer()
public boolean isRunning()
public void add()
public Meter add(long difference)
public long getCount()
public long getStarted()
public long getElapsedTime()
public double getUnitsPerSecond()
reset
.reset()
public String getUnitsPerSecondAsString()
public DataException addExceptionProperties(DataException exception)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.