pub unsafe extern "C" fn ANeuralNetworksExecution_getDuration(
execution: *const ANeuralNetworksExecution,
durationCode: i32,
duration: *mut u64,
) -> c_intExpand description
Get the time spent in the specified {@link ANeuralNetworksExecution}, in nanoseconds.
The execution must have completed. On asynchronous execution initiated by {@link ANeuralNetworksExecution_startCompute} or {@link ANeuralNetworksExecution_startComputeWithDependencies}, {@link ANeuralNetworksEvent_wait} must be called prior to this function.
@param execution The execution to be queried. @param durationCode The measurement to be queried, specified by {@link DurationCode}. @param duration The returned duration. If no measurement was requested by {@link ANeuralNetworksExecution_setMeasureTiming}, if the device is has a feature level reported by {@link ANeuralNetworksDevice_getFeatureLevel} that is lower than 29, or for some other reason the duration is not available, UINT64_MAX will be returned. A particular device need not support any given measurement.
@return ANEURALNETWORKS_NO_ERROR if successful.
Available since API level 29.