You CANNOT do this:
because the procedure doThis will be called immediately after you call the wait procedure, it will not wait.
You CAN do this:
When you press button2, the clock timer is enabled, but will not fire until the timer interval is reached, then doThis will be run.

