From ce07c1a454d29b26817e23a3891caabbcc8306cc Mon Sep 17 00:00:00 2001 From: Unbit Date: Sat, 7 Dec 2013 07:33:38 +0100 Subject: [PATCH] report total build time --- uwsgiconfig.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 52e2b3a4..9154e331 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -55,6 +55,8 @@ if CPUCOUNT < 1: binary_list = [] +started_at = time.time() + # this is used for reporting (at the end of the build) # the server configuration report = { @@ -521,6 +523,8 @@ def build_uwsgi(uc, print_only=False, gcll=None): print("") print("############## end of uWSGI configuration #############") + print("total build time: %d seconds" % (time.time() - started_at)) + if bin_name.find("/") < 0: bin_name = './' + bin_name if uc.get('as_shared_library'):