The NI Developer Zone's Resource Library has a special VI that calls an assembly intruction, RDTSC, which reads the time stamp counter register on Pentium class processors. Using this VI, we can very accurately measure control loop cycle time and software jitter of VIs running on the real-time PXI targets, including the PXI-8156B and PXI-8170.
http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&ED6B3E3D80C1390C862568EB0073B5ED&cat=98EEA3AF25CFCA42862568CD0066090E
There is no equivalent utility for the PXI-7030 and PCI-7030 real-time boards yet. However, if you have a 7030 E-Series board, you can use one of the general purpose counters to perform event counting. Simply call Counter Get Attribute to obtain the current count between loop cycles. If the 20 MHz
internal timebase is used as the counter's source, your timing measurement will have a resolution of 50 nanoseconds (1/20 MHz).