Main Content

ExecutionTimeInTicks

Get execution times in timer ticks for profiled section of code (MATLAB code generation)

Description

example

ExecutionTimes = NthSectionProfile.ExecutionTimeInTicks returns a vector of execution times, measured in timer ticks, for the profiled section of code. Each element of ExecutionTimes contains the difference between the timer reading at the start and the end of the section. The data type of the arrays is the same as the data type of the timer used on the target, which allows you to infer the maximum range of the timer measurements.

Examples

collapse all

To get a vector of execution times, measured in timer ticks, for the profiled section of code, use the ExecutionTimeInTicks property of the NthSectionProfile object.

ExecutionTimes = NthSectionProfile.ExecutionTimeInTicks

Input Arguments

collapse all

The NthSectionProfile is a coder.profile.ExecutionTimeSection object generated by the coder.profile.ExecutionTime property Sections.

Example: NthSectionProfile

Output Arguments

collapse all

The SelfExecutionTimes is a vector of execution times, in timer ticks, for profiled section of code.

Introduced in R2012b