Forum Discussion

boaz_haim's avatar
boaz_haim
Contributor
13 years ago

performance test

Hi,

I'm trying to create a performance script.

the time is measured from clicking a button until a box diapers.



what is the best way to do it?



wright now I have something like this:



var time =HISUtils["StopWatch"];    

  time["Reset"]();

//click on a button

time["Start"]();

var flag= flag;

while (flag["enabled"} == true){

}

time["Stop"]();



write now the time measurement is not good, the while loop has a delay I cannot understand...



can you help?

2 Replies