From 47570f0e9a233308c709d992ffeef7aab02a133c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 8 Sep 2009 22:29:11 -0400 Subject: Add timing for build --- rpmbuild-remote.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rpmbuild-remote.py') diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py index d537979..db612ac 100644 --- a/rpmbuild-remote.py +++ b/rpmbuild-remote.py @@ -141,7 +141,10 @@ def execute_jobs(opts, system, jobs): file = os.path.basename(job[0]) LOG.info("Building %s from %d souces" % (file, len(job) - 1)) cmd = "rpmbuild -ba rpmbuild/SPECS/%s" % file) + start = time.clock() files = session.exec_command(cmd) + finish = time.clock() + LOG.info("Completed build %.03f seconds" % (finish - start)) # Write output files # Fetch RPM files session.close() -- cgit