TotalSelfTimeInTicks - Get total number of timer ticks recorded for profiled code section, excluding time

     spent in child functions - MATLAB ([original](https://www.mathworks.com/help/ecoder/ref/coder.profile.executiontimesection.totalselftimeinticks.html)) ([raw](?raw))

Main Content

Get total number of timer ticks recorded for profiled code section, excluding time spent in child functions

Syntax

Description

[TotalSelfTicks](#mw%5Fb53488ad-09c8-413e-ac33-73c9eafda2d7) = [NthSectionProfile](#mw%5Fc871c76e-c009-4256-9da2-a3ba85a19bde).TotalSelfTimeInTicks returns the total number of timer ticks recorded for the profiled code section over the entire simulation. However, this number excludes the time spent in calls to child functions.

example

Examples

collapse all

To get a value for execution time, measured in timer ticks, for the profiled section of code, use the TotalSelfTimeInTicks property of the NthSectionProfile object.

TotalSelfTicks = NthSectionProfile.TotalSelfTimeInTicks;

Input Arguments

collapse all

The NthSectionProfile is acoder.profile.ExecutionTimeSection object generated by thecoder.profile.ExecutionTime propertySections.

Example: NthSectionProfile

Output Arguments

collapse all

The TotalSelfTicks is the total number of timer ticks for profiled code section, excluding periods in child functions.

Version History

Introduced in R2012b