There is already a timer control availabe in
VB. It depends wether you are creating a WEB app, or a Forms application.
With a forms application you can put a timer control on the form that has an interval value of 2000 miliseconds or 2 seconds.
when your procedure starts and you want to let your user know that is running then your timer needs only to be set to active and it will tick every two seconds and run whatever code is in your on_timer event.
You could put some module level variable in which holds the state of your procedure that in turn would be read by the timer event code.
One thing to remember is that if you start your procedure you should at some point perform a doevents so that the timer has a chance to fire. If you are running
vb.net then you could start a new thread with your procedure, start your timer at the same time and then the two will run concurrently(or what looks like concurrent)
Hope this helps!