文档

TimerTicksPerSecond

获取并设置每秒计时器滴答数

语法

timerTicksPerSecValmyExecutionProfile.TimerTicksPerSecond
myExecutionProfile.TimerTicksPerSecond =timerTicksPerSecVal

描述

timerTicksPerSecValmyExecutionProfile.TimerTicksPerSecond返回每秒钟的计时器滴答数。例如,如果计时器以1 MHz运行,则每秒滴答数为106

myExecutionProfile.TimerTicksPerSecond =timerTicksPerSecVal设置每秒计时器的滴答数。使用此方法,如果为Simulink创建PIL目标连接配置金宝app不指定此值。

myExecutionProfile是由模拟生成的工作空间变量。

提示

您可以使用该公式计算执行时间(以秒为单位) E x e c u t o n T e n 年代 e c 年代 E x e c u t o n T e n T c k 年代 / T e r T c k 年代 P e r 年代 e c o n d

输入参数

timerTicksPerSecVal

每秒计时器滴答数

输出参数

timerTicksPerSecVal

每秒计时器滴答数

介绍了R2012b