public class StopwatchTimeRange extends TimeRange
lastTimestamp
Constructor and Description |
---|
StopwatchTimeRange(long startTimestamp,
long endTimestamp)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSplit(long timestampInMs,
long durationInNs)
Add stopwatch split information.
|
long |
getCounter() |
long |
getLast() |
long |
getMax() |
Double |
getMean()
Compute mean (average) duration.
|
long |
getMin() |
Double |
getStandardDeviation()
Computes standard deviation.
|
long |
getTotal() |
Double |
getVariance()
Compute variance.
|
protected StringBuilder |
toStringBuilder(StringBuilder stringBuilder) |
containsTimestamp, getEndTimestamp, getStartTimestamp, toString
public StopwatchTimeRange(long startTimestamp, long endTimestamp)
public void addSplit(long timestampInMs, long durationInNs)
timestampInMs
- when the split started, expressed in millisecondsdurationInNs
- how long the split was, expressed in nanosecondspublic long getLast()
public long getMin()
public long getMax()
public long getTotal()
public long getCounter()
public Double getVariance()
public Double getStandardDeviation()
protected StringBuilder toStringBuilder(StringBuilder stringBuilder)
toStringBuilder
in class TimeRange
Copyright © 2019. All rights reserved.