added total time display

This commit is contained in:
k4yt3x 2019-08-17 23:28:37 -04:00
parent 9c84228c17
commit 2b63b5f0a6

View File

@ -225,6 +225,9 @@ class Video2xGui():
def _upscale(self):
# start timer
begin_time = time.time()
# read configuration file
config = read_config('video2x.json')
config = absolutify_paths(config)
@ -320,12 +323,11 @@ class Video2xGui():
self.upscaler.cleanup_temp_directories()
# show message when upscaling completes
messagebox.showinfo('Info', 'Upscaling Completed')
messagebox.showinfo('Info', f'Upscaling Completed\nTime Taken: {round((time.time() - begin_time), 5)} seconds')
self.progress_bar['value'] = 100
self.running = False
self.start_button_text.set('Start')
def _progress_bar(self):
""" This method prints a progress bar