You can log the time elapsed for the execution of a command and check whether the elapsed time is within the specified limit. See the script shown below:
This measurement includes the time taken to capture the screen at each step and the time required for MagicPod to execute the process. Therefore, it is not an exact measurement but can help identify cases where the process is running significantly slower than expected.