06-28-2013 06:49 AM
Hi,
what is the time taken of for loop 1 iteration without code inside.How to calculate this Execution time.
06-28-2013 07:20 AM
@Ravindranath.K wrote:
Hi,
what is the time taken of for loop 1 iteration without code inside.How to calculate this Execution time.
No code in the FOR loop? It will not use any time because the compiler will optimize it out.
Why do you even need to know?
06-28-2013 08:02 AM
I'm going to assume you want to know the time of code inside the for loop. Use the Tick Count vi from the timing panel. Place 1 outside the loop to get a start time reference. Place a second inside the for loop and subtract them to get time of iteration i since start of loop.
06-28-2013 08:32 AM
crossrulz wrote
[...]Why do you even need to know?
Just a wild guess:
Performance comparison to some other languages.
If i am correct, this is rather useless as the complete software defines the performance, not the sum of the indiviual components (mutlithreading, jipppey!)....
Norbert