The inherent problem with what you are looking to do is this: How does (or *can*) your process know how long it *should* take for a login to occur? Unless you establish some expectation of execution time, you can't show progress.
In contrast, if you were downloading a file, you would first get the size of the file, and then your process can establish how complete it is by knowing how many bytes it has downloaded relative to the total.
If you have a process that is made up of many steps, you could potentially show the progress by knowing how many steps total and how many steps completed so far.
-
Peter