WorkDuration
public
final
class
WorkDuration
extends Object
| java.lang.Object | |
| ↳ | android.os.WorkDuration |
WorkDuration contains the measured time in nano seconds of the workload
in each component, see
PerformanceHintManager.Session.reportActualWorkDuration(WorkDuration).
All timings should be in SystemClock.uptimeNanos() and measured in wall time.
Summary
Public constructors | |
|---|---|
WorkDuration()
|
|
Public methods | |
|---|---|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
long
|
getActualCpuDurationNanos()
Returns the actual CPU duration in nanoseconds. |
long
|
getActualGpuDurationNanos()
Returns the actual GPU duration in nanoseconds. |
long
|
getActualTotalDurationNanos()
Returns the actual total duration in nanoseconds. |
long
|
getWorkPeriodStartTimestampNanos()
Returns the work period start timestamp based in nanoseconds. |
int
|
hashCode()
Returns a hash code value for the object. |
void
|
setActualCpuDurationNanos(long actualCpuDurationNanos)
Sets the actual CPU duration in nanoseconds. |
void
|
setActualGpuDurationNanos(long actualGpuDurationNanos)
Sets the actual GPU duration in nanoseconds. |
void
|
setActualTotalDurationNanos(long actualTotalDurationNanos)
Sets the actual total duration in nanoseconds. |
void
|
setWorkPeriodStartTimestampNanos(long workPeriodStartTimestampNanos)
Sets the work period start timestamp in nanoseconds. |
Inherited methods | |
|---|---|