Measure Natural program response time in milli-seconds

Hi all,

I want to measure Natural execution time (inside program) down to milli-second. However, our existing timestamp format is (HH.II.SS.T). That is, I can only output to tenth of a second. Is it possible to capture to milli-second directly instead of writing an external C program to achieve it ?

Thanks in advance.

*TIMESTMP has the accuracy you need. Convert to a “usable” value with USR1023N or USR2036N.

Retrieval and conversion of this variable will cost you some CPU cycles, which may impact your results.

Thanks Ralph. That APIs suit my requirement.