public class TimedTracker
extends java.lang.Object
| Constructor and Description |
|---|
TimedTracker() |
| Modifier and Type | Method and Description |
|---|---|
long |
beginTracking()
Begin tracking an execution time.
|
void |
endTracking(long trackingToken,
PacketType type)
Stop and record the execution time since the creation of the given tracking token.
|
int |
getObservations()
Retrieve the total number of observations.
|
java.util.Map<PacketType,StatisticsStream> |
getStatistics()
Retrieve an map (indexed by packet type) of all relevant statistics.
|
public long beginTracking()
public void endTracking(long trackingToken,
PacketType type)
trackingToken - - the tracking token.packetId - - the packet ID.public int getObservations()
public java.util.Map<PacketType,StatisticsStream> getStatistics()