From 65d6c5979c76c97cc167063b66b1133f6f0f081d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 12 Jul 2014 14:45:51 +0530 Subject: [PATCH] Display build times for the binary builds --- setup/installer/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/installer/__init__.py b/setup/installer/__init__.py index 08b280955f..9561e72327 100644 --- a/setup/installer/__init__.py +++ b/setup/installer/__init__.py @@ -158,7 +158,9 @@ class VMInstaller(Command): def run(self, opts): subprocess.call(['chmod', '-R', '+r', 'recipes']) self.start_vm() + start_time = time.time() self.run_vm_builder() + print ('Build completed in %d seconds' % round(time.time() - start_time)) if not opts.dont_shutdown: print ('Shutting down', self.VM_NAME) subprocess.call(['ssh', self.VM_NAME]+self.SHUTDOWN_CMD)