主要内容

TimerTicksPerSecond

获取和设置的计时器滴答每秒(MATLAB代码生成)

描述

例子

timerTicksPerSecVal=myExecutionProfile.TimerTicksPerSecond返回计时器每秒蜱虫的数量。例如,如果计时器运行1 MHz,那么每秒蜱虫的数量是106

你可以使用公式计算执行时间以秒为单位 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

例子

myExecutionProfile.TimerTicksPerSecond =timerTicksPerSecVal设置定时器每秒蜱虫的数量。使用这种方法如果目标连接配置没有指定这个值。

例子

全部折叠

每秒计时器滴答数,得到的TimerTicksPerSecond属性值的myExecutionProfile工作空间变量。

timerTicksPerSecVal = myExecutionProfile.TimerTicksPerSecond;

设置定时器每秒蜱虫的数量,设置TimerTicksPerSecond属性值的myExecutionProfile工作空间变量。

myExecutionProfile。T我米erT我ck年代Per年代econd= timerTicksPerSecVal;

输入参数

全部折叠

myExecutionProfile是一个工作空间变量包含执行概要文件从你的MATLAB生成的代码®函数。

计时器滴答数/秒

例子:timerTicksPerSecVal

输出参数

全部折叠

计时器滴答数/秒

版本历史

介绍了R2012b