bara_hence
Member
First of all sorry for my bad english..
Second looking for some info about the execution time of for loops as i have a system that sometimes get heavely loaded due to many big for loops executing..
Questions:
1. Is the execution time of a for loop depending on the data area i am indirect adressing for example
i have a db with an array of 1000 integers and another with an array of 1000 bools and i have a foor loop that just loops trough this area..
Sure i know the execution time of comparing bools instead of int is faster but i wonder if the for loop itself takes longer to execute??
2. How long time takes each increment of the loop in execution time?? lets say i only do a loop with nothing in it e.g
for i:=0 to 1000 by 1 do
end_for
//EDIT
Ok found some info but as I dont have step7 here i wonder is scl using the loop instruction when compiled to STL code??
If it does i can find ut the cycle time now.. Thanks anyway..
Second looking for some info about the execution time of for loops as i have a system that sometimes get heavely loaded due to many big for loops executing..
Questions:
1. Is the execution time of a for loop depending on the data area i am indirect adressing for example
i have a db with an array of 1000 integers and another with an array of 1000 bools and i have a foor loop that just loops trough this area..
Sure i know the execution time of comparing bools instead of int is faster but i wonder if the for loop itself takes longer to execute??
2. How long time takes each increment of the loop in execution time?? lets say i only do a loop with nothing in it e.g
for i:=0 to 1000 by 1 do
end_for
//EDIT
Ok found some info but as I dont have step7 here i wonder is scl using the loop instruction when compiled to STL code??
If it does i can find ut the cycle time now.. Thanks anyway..
Last edited: