diff --git a/pagure_sync_bugzilla.py b/pagure_sync_bugzilla.py index 3e8a278..9228da0 100644 --- a/pagure_sync_bugzilla.py +++ b/pagure_sync_bugzilla.py @@ -636,6 +636,7 @@ def _to_legacy_schema(product_and_project_and_summary, session=None): def main(): """The entrypoint to the script.""" global VERBOSE, DRYRUN, projects_dict + start = time.time() parser = argparse.ArgumentParser( description='Script syncing information between Pagure and bugzilla' @@ -801,6 +802,10 @@ def main(): with open(DATA_CACHE, 'w') as stream: json.dump({}, stream) + if VERBOSE: + delta = time.time() - start + print("Ran for %s seconds -- ie: %.2f minutes" % (delta, delta/60.0)) + sys.exit(0)