Owning Class: rt
Requires: Real-Time Module and MathScript RT Module
rt_tickcount
rt_tickcount(unit)
t = rt_tickcount
t = rt_tickcount(unit)
Returns the value of a free-running counter in the units you specify. Both the output and the internal counter are 32-bit unsigned integers. Use this function to obtain high-precision timing information for MathScript code running on an RT target.
| Name | Description | ||||||
|---|---|---|---|---|---|---|---|
| unit | Specifies the unit to use for the internal counter and the output of this function. unit is a string that accepts the following values.
|
| Name | Description |
|---|---|
| t | Returns the value of the free-running counter in the units you specify. |
This function is equivalent to the Tick Count Express VI.
A = rt_tickcount('ticks');
B = rt_tickcount('ticks');
ElapsedTime = B - A;