I need to calculate time (TheTime) for table loading. This time need to be between Java menu is selected and table exist in the same Parent window. Clock function is calculating the time. However in the result TheTime is 30 sec that identified by Wait function, but not real time when table is loading. What is better way to do it? What is wrong with my code? This is how my code looks:
It appears that you have two separate variable names for Clock: "ClockTable " & "ClockTable"
Keep watch of those extra spaces. Not sure if that's it, but that's where I'd start.
If that's not it, make sure you watch and verify that the window event does occur within the 30 seconds allowed. If it doesn't, your Clock is always going to report 30 seconds since that's how long the wait period is.