mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-04 04:39:10 +00:00
added total time display
This commit is contained in:
parent
9c84228c17
commit
2b63b5f0a6
@ -225,6 +225,9 @@ class Video2xGui():
|
|||||||
|
|
||||||
def _upscale(self):
|
def _upscale(self):
|
||||||
|
|
||||||
|
# start timer
|
||||||
|
begin_time = time.time()
|
||||||
|
|
||||||
# read configuration file
|
# read configuration file
|
||||||
config = read_config('video2x.json')
|
config = read_config('video2x.json')
|
||||||
config = absolutify_paths(config)
|
config = absolutify_paths(config)
|
||||||
@ -320,12 +323,11 @@ class Video2xGui():
|
|||||||
self.upscaler.cleanup_temp_directories()
|
self.upscaler.cleanup_temp_directories()
|
||||||
|
|
||||||
# show message when upscaling completes
|
# 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.progress_bar['value'] = 100
|
||||||
self.running = False
|
self.running = False
|
||||||
self.start_button_text.set('Start')
|
self.start_button_text.set('Start')
|
||||||
|
|
||||||
|
|
||||||
def _progress_bar(self):
|
def _progress_bar(self):
|
||||||
""" This method prints a progress bar
|
""" This method prints a progress bar
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user