| Modifier and Type | Field and Description |
|---|---|
double |
avgInvocationTimeInMs
Average time of a single invocation in ms.
|
long |
elapsedTimeInMs
Elapsed time in ms.
|
String |
humanReadableAvgInvocationTime
Average time of a single invocation in human readable format.
|
String |
humanReadableElapsedTime
Elapsed time in human readable format.
|
String |
humanReadableInvocationCount
Invocation count in human readable format.
|
long |
invocationCount
Invocation count.
|
String |
name
Associated name.
|
long |
startTime
Start time from
System.currentTimeMillis(). |
long |
stopTime
Stop time from
System.currentTimeMillis(). |
| Constructor and Description |
|---|
TimerStatistics(String name,
long startTime,
long stopTime,
long invocationCount)
Construct.
|
public String name
public long startTime
System.currentTimeMillis().public long stopTime
System.currentTimeMillis().public long elapsedTimeInMs
public String humanReadableElapsedTime
public long invocationCount
public String humanReadableInvocationCount
public double avgInvocationTimeInMs
invocationCount is 0 value is set to elapsedTimeInMs.public String humanReadableAvgInvocationTime
invocationCount is 0 value is set to humanReadableElapsedTime.public TimerStatistics(String name, long startTime, long stopTime, long invocationCount)
name - Associated namestartTime - Start timestopTime - Stop timeinvocationCount - Invocation count. When zero avg invocation time is the elapsed time