Delayアクティビティの存在理由

こんにちは
UiPath Studio 2025.0.172STS Community editionのユーザーです。

以前下記のスレッドで、カウントダウンするタイマーを画面に表示させる方法を有識者の方にサンプルコードで提供いただいたのですが、(添付画像)

ループの中に置いた0.5秒遅延させるDelayアクティビティの存在理由が分かりません。
もしかして、信頼できるストップウオッチの実測値とこのカウントダウンタイマーの実測値を比較してみたらたまたま0.5秒ずれていたので、0.5秒遅延させるDelayアクティビティを挿入したのでしょうか?
理由が分かる方、ご教示をお願いします。

@gorby

Just to ensure a small gap between the current and next message box that delay is kept I believe..if you dont need you can remove as well

Cheers

Hi @gorby

I assume that you are closing message box after few seconds automatically.

In a loop, if there is no delay after message box, you will see message box back to back until loop finishes thus making it hard to observe when previous message box closed and new one appeared.

So having delay, there will be a notable difference.

I would suggest disabling that delay activity and then observing the behavior and then re enable the delay and observe, that will help you understand better what I have tried to explain above.

I hope to go for a drive with you in my e-VITARA someday.

Regards,

gorby

The delay you used will make you message box execute 0.5sec late so that you get a more human-readable countdown behavior and also CPU usage stays low.

Cheers