public class PrecisionTimer extends Object
Constructor and Description |
---|
PrecisionTimer() |
Modifier and Type | Method and Description |
---|---|
long |
getAvgIntervalMilliSeconds() |
long |
getAvgIntervalNanoSeconds() |
long |
getAvgIntervalSeconds() |
long |
getElapsedMilliSeconds()
Returns the elapsed time in milliseconds.
|
long |
getElapsedNanoSeconds()
Returns the elapsed time in nanoseconds.
|
long |
getElapsedSeconds()
Returns the elapsed time in seconds.
|
double |
getItemsPerSecond(long nItems) |
long |
getLastIntervalMilliSeconds() |
long |
getLastIntervalNanoSeconds() |
long |
getLastIntervalSeconds() |
long |
getMaxIntervalMilliSeconds() |
long |
getMaxIntervalNanoSeconds() |
long |
getMaxIntervalSeconds() |
double |
getMicroSecondsPerItem(long nItems) |
static double |
getMicroSecondsPerItem(long elapsed,
long nItems) |
double |
getMilliSecondsPerItem(long nItems) |
static double |
getMilliSecondsPerItem(long elapsed,
long nItems) |
double |
getNanoSecondsPerItem(long nItems) |
static double |
getNanoSecondsPerItem(long elapsed,
long nItems) |
double |
getSecondsPerItem(long nItems) |
static double |
getSecondsPerItem(long elapsed,
long nItems) |
void |
reset() |
long |
start() |
long |
start(long startTime) |
long |
stop() |
String |
toString() |
long |
update() |
public long start()
public long start(long startTime)
public long update()
public long stop()
public void reset()
public long getAvgIntervalNanoSeconds()
public long getAvgIntervalMilliSeconds()
public long getAvgIntervalSeconds()
public long getMaxIntervalNanoSeconds()
public long getMaxIntervalMilliSeconds()
public long getMaxIntervalSeconds()
public long getLastIntervalNanoSeconds()
public long getLastIntervalMilliSeconds()
public long getLastIntervalSeconds()
public long getElapsedNanoSeconds()
public long getElapsedMilliSeconds()
public long getElapsedSeconds()
public double getItemsPerSecond(long nItems)
public double getNanoSecondsPerItem(long nItems)
public double getMicroSecondsPerItem(long nItems)
public double getMilliSecondsPerItem(long nItems)
public double getSecondsPerItem(long nItems)
public static double getNanoSecondsPerItem(long elapsed, long nItems)
public static double getMicroSecondsPerItem(long elapsed, long nItems)
public static double getMilliSecondsPerItem(long elapsed, long nItems)
public static double getSecondsPerItem(long elapsed, long nItems)
Copyright © 2005–2024 Onix Solutions. All rights reserved.