07-13-2005 06:54 PM
07-14-2005 03:29 AM
In general, a good timing device is a 3 frame sequence. The first and third frames have a ms counter (from the Time & Dialog palette) and the second has the code. Then, you substract the value in the first frame from the value in the third and you know how many ms it took. The problem is that many things take less than a ms to execute and that is something you can only measure statistically, by running your code many times in a for loop (let's say a million times).
If you want iteration times, you can accomplish the same by using a shift register to keep the value of the ms counter from the last iteration and substract it from the current counter value.
07-14-2005 03:53 AM