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