I have a winforms app, and pops up some windows from time to time depending on what the user clicks on. Lately, users have been complaining that the pop ups take too long to appear. If I profile the code, or put in a Stopwatch, I see that my C# code finishes process the Show() method in about 50ms, but the window itself won't appear for almost a second.
Is there any way to measure that amount time until the window actually appears?