How to identify a moment when a user interface is updated (VBA)?

Hi all,

Can someone help me to find the way how to identify the moment (and write a timestamp to a log file) when some processing is ended and SolidWorks Interface is updated?

For example - I have an assembly, and I create a circle on some face and then apply 'Assembly->Assembly Features->Extrudet Cut' (Through All - Both).

After that SW performing some calculation and during that User Interface freezes, and in some moment all is ended and the hole through all assembly is appear.

In a macro, I'm trying to identify the moment when the process finishes and UI is updated (and the hole appears).

How can I do that?

SolidworksApi/macros