public class TimeMetrics extends SystemMetrics<TimeMetrics>
Modifier and Type | Field and Description |
---|---|
long |
realtimeMs |
long |
uptimeMs |
Constructor and Description |
---|
TimeMetrics() |
Modifier and Type | Method and Description |
---|---|
TimeMetrics |
diff(TimeMetrics b,
TimeMetrics output)
Subtract the object passed in from the current object.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
TimeMetrics |
set(TimeMetrics metrics)
Sets all fields in this to values from the SystemMetrics object passed in: a _deep_ copy that
shouldn't share any values with other metrics objects.
|
TimeMetrics |
sum(TimeMetrics b,
TimeMetrics output)
Add values from the SystemMetrics object passed in and sets them on the output object,
if available.
|
java.lang.String |
toString() |
diff, sum
public TimeMetrics set(TimeMetrics metrics)
SystemMetrics
set
in class SystemMetrics<TimeMetrics>
public TimeMetrics sum(@Nullable TimeMetrics b, @Nullable TimeMetrics output)
SystemMetrics
sum
in class SystemMetrics<TimeMetrics>
public TimeMetrics diff(@Nullable TimeMetrics b, @Nullable TimeMetrics output)
SystemMetrics
diff
in class SystemMetrics<TimeMetrics>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object