|Download Help (Windows Only)|
Owning Class: rt
Requires: Real-Time Module and MathScript RT Module
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.
|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.
|t||Returns the value of the free-running counter in the units you specify.|
This function is equivalent to the Tick Count Express VI.
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||Not characterized|
A = rt_tickcount('ticks');
B = rt_tickcount('ticks');
ElapsedTime = B - A;