From 097675a9e87e37e1cc0daaa4e3f99a37a6200093 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 13 May 2018 13:52:04 +0200 Subject: [PATCH] time the execution duration of the application --- moviespy/moviespy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/moviespy/moviespy.py b/moviespy/moviespy.py index 0edb79b..91f8745 100755 --- a/moviespy/moviespy.py +++ b/moviespy/moviespy.py @@ -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[''] destination = arguments[''] @@ -97,6 +99,8 @@ if __name__ == '__main__': max_files_per_folder.limitFilesPerFolder(destination, maxNumberOfFilesPerFolder) + print("--- %s seconds ---" % (time.time() - start_time)) +