I intend to use the different of two count tick for measuring the duration of the process as shown in my code. But so far, I struck with two problems. 1. I cannot initialize the count tick function. 2. I cannot get the result from that code.
Many thanks, and as you say, it works after I remove the initial tick count outsind the whil loop, but that time is not like I expect. Because I need to get the execution duration in the sequence loop.
That's different... If you want to time the duration of a process, you ahve to add a frame in the sequence, before reading the ticks. leave the iniatial tick count inside. See the attachment
For easy code readability, I would suggest a 3-frame flat sequence to isolate the timing process from all the rest of the code that could occur in a typical loop. (Otherwise you're also never quite sure if the start timing really occurs immediately before the process to be timed.)