Compartir a través de


PerformanceHintManager.Session.ReportActualWorkDuration(Int64) Method

Definition

Reports the actual duration for the last cycle of work.

[Android.Runtime.Register("reportActualWorkDuration", "(J)V", "GetReportActualWorkDuration_JHandler", ApiSince=31)]
public virtual void ReportActualWorkDuration (long actualDurationNanos);
[<Android.Runtime.Register("reportActualWorkDuration", "(J)V", "GetReportActualWorkDuration_JHandler", ApiSince=31)>]
abstract member ReportActualWorkDuration : int64 -> unit
override this.ReportActualWorkDuration : int64 -> unit

Parameters

actualDurationNanos
Int64

how long the thread group took to complete its last task in nanoseconds

Attributes

Remarks

Reports the actual duration for the last cycle of work.

The system will attempt to adjust the core placement of the threads within the thread group and/or the frequency of the core on which they are run to bring the actual duration close to the target duration.

Java documentation for android.os.PerformanceHintManager.Session.reportActualWorkDuration(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to