pub unsafe extern "C" fn ANeuralNetworksExecution_setMeasureTiming(
execution: *mut ANeuralNetworksExecution,
measure: bool,
) -> c_intExpand description
Specifies whether duration of the {@link ANeuralNetworksExecution} is to be measured. Evaluation of the execution must not have been scheduled.
By default, duration is not measured.
The {@link ANeuralNetworksExecution} must have been created from an {@link ANeuralNetworksCompilation} which in turn was created from {@link ANeuralNetworksCompilation_createForDevices} with numDevices = 1. If the device has a feature level reported by {@link ANeuralNetworksDevice_getFeatureLevel} that is lower than 29, then the duration will not be measured.
See {@link ANeuralNetworksExecution} for information on multithreaded usage.
Available since API level 29.
@param execution The execution to be modified. @param measure ‘true’ if duration is to be measured, ‘false’ if not.
@return ANEURALNETWORKS_NO_ERROR if successful.