Main Content

TotalSelfTimeInTicks

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

Description

TotalSelfTicks = NthSectionProfile.TotalSelfTimeInTicks returns the total number of timer ticks recorded for the profiled code section over the entire execution. 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 a coder.profile.ExecutionTimeSection object generated by the coder.profile.ExecutionTime property Sections.

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