If you use the following commands, you can log the time elapsed for the execution of a command, as well as check whether the elapsed time is within the specified time.
This includes the time it takes to capture the screen at each step and the time it takes MagicPod itself to perform the process, so it is not an exact measurement. However, it can help you notice when it the process is running extremely slowly.