ssGetElapseTimeResolution
Get the sample time of the elapse time counter associated with the S-function
Since R2023b
Syntax
void ssGetElapseTimeResolution(SimStruct *S, int *resolution)
Arguments
- S
- SimStruct that represents an S-Function block. 
- resolution
- The location of variable where the sample time of the elapse time counter is to be stored 
Description
Use to get the sample time of the elapse time counter associated with the
                S-function. ssGetElapseTimeResolution writes the sample time of the elapse time counter to the
                location specified by the variable resolution.
Languages
C, C++
Examples
The following code snippet of the mdlOutputs callback for an
                S-function returns the resolution of the counter associated with the S-function
                block as its output.
static void mdlOutputs(SimStruct *S, int_T tid)
{
    void  *y = ssGetOutputPortSignal(S,0);
    
    ssGetElapseTimeResolution(S, y);
       
}Version History
Introduced in R2023b