ExecutionTimeInTicks
Get execution times in timer ticks for profiled section of code
Description
returns a vector of execution times, measured in timer ticks, for the profiled section of
code. Each element of ExecutionTimes
= NthSectionProfile
.ExecutionTimeInTicksExecutionTimes
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.
If you set the CodeProfilingSaveOptions
parameter to
'SummaryOnly'
,
returns an empty array. To change that parameter, open the Configuration Parameters dialog
box by pressing Ctrl+E, open the Verification
pane under Code Generation, and
change the Save options parameter to
NthSectionProfile
.ExecutionTimeInTicksAll data
.
You can calculate the execution time in seconds using the formula
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2012b
See Also
Sections
| TimerTicksPerSecond
| display
| report
| Name
| Number
| NumCalls
| MaximumExecutionTimeCallNum
| MaximumSelfTimeCallNum
| MaximumExecutionTimeInTicks
| TotalExecutionTimeInTicks
| SelfTimeInTicks
| MaximumSelfTimeInTicks
| TotalSelfTimeInTicks
| MaximumTurnaroundTimeInTicks
| MaximumTurnaroundTimeCallNum
| TurnaroundTimeInTicks
| TotalTurnaroundTimeInTicks