LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the run time of codes?

I want to how to get the run time of codes.

For example , 

       for(i = 0; i < 10; i++) a = i;

 

0 Kudos
Message 1 of 2
(2,255 Views)

Are you interested in knowing the execution time of a section of code? Would a simple difference between two Timer () values be enough?

double  t0, exeT;

tini = Timer ();
// Code to test
exeT = Timer () - tini;

If not, can you clarify better your question?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,225 Views)