I have never had to run such a thing in a macro... however, there are a ton of people on the Forum who have - of course!
Just to get you started in testing a few things... there should be a few Built-In Macro Functions (a great place to search for applicable functions) that could help, such as:
Delays (sleeps) for n milliseconds.
Halts the macro and displays string in a dialog box. The macro proceeds when the user clicks "OK". Unlike showMessage, the dialog box is not modal, so the user can, for example, create a selection or adjust the threshold while the dialog is open. To display a multi-line message, add newline characters ("\n") to string. This function is based on Michael Schmid's WaitFor_User plugin. Example: WaitForUserDemo._
This is a two argument version of waitForUser, where title is the dialog box title and message is the text displayed in the dialog.
This is a no argument version of waitForUser that displays "Click OK to continue" in the dialog box.
I hope this is at least a start for you for testing...