Use ProgressBar to show function execution progress
I want to show the execution progress of my function using a progress bar.When a user clicks a button the function starts to be executed and i want to display the progress of its execution time using a progress bar.Please help.Thanks in advance.