The statement
USING ... IN allows you to automatically start and stop a stopwatch.
This instruction mainly simplifies the accumulation of stopwatches over several iterations.
If the stopwatch is stopped at the beginning of the block, it is automatically triggered when exiting the block.
c is Chrono
USING c IN
ThreadPause(2s)
IF True THEN
BREAK
// The calculation of the stopwatch stops
END
END
ThreadPause(2s) // This code is not taken into account when calculating the stopwatch
USING c IN
ThreadPause(2s)
END
Info(c)
Syntax
USING <Stopwatch> IN
...
END
<USING IN>:
Marks the beginning of the statement block.
<Stopwatch>: Chrono variable
Name of the Chrono variable that corresponds to the time calculation to make.