time the execution duration of the application

This commit is contained in:
Andreas Zweili 2018-05-13 13:52:04 +02:00
parent 7cf05b7f2a
commit 097675a9e8
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@ Options:
import os import os
import fnmatch import fnmatch
from shutil import copy2 from shutil import copy2
import time
from docopt import docopt from docopt import docopt
import jpgSorter import jpgSorter
@ -82,6 +83,7 @@ def sort_jpgs(location):
if __name__ == '__main__': if __name__ == '__main__':
start_time = time.time()
arguments = docopt(__doc__, version='Movie Spy v1.0') arguments = docopt(__doc__, version='Movie Spy v1.0')
source = arguments['<source>'] source = arguments['<source>']
destination = arguments['<destination>'] destination = arguments['<destination>']
@ -97,6 +99,8 @@ if __name__ == '__main__':
max_files_per_folder.limitFilesPerFolder(destination, max_files_per_folder.limitFilesPerFolder(destination,
maxNumberOfFilesPerFolder) maxNumberOfFilesPerFolder)
print("--- %s seconds ---" % (time.time() - start_time))