Remove the progress bar getTime() method and replace it with an elapsed_time() method which counts the elapsed time of the progress bar.
getTime()
elapsed_time()